Showing 295 of 1,642 total issues
Function drag
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
ReorderDrag.prototype.drag = ionic.animationFrameThrottle(function(e) {
// We really aren't dragging
var self = this;
if (!this._currentDrag) {
return;
Function RevealMath
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var RevealMath = window.RevealMath || (function(){
var options = Reveal.getConfig().math || {};
options.mathjax = options.mathjax || 'http://cdn.mathjax.org/mathjax/latest/MathJax.js';
options.config = options.config || 'TeX-AMS_HTML-full';
Function setupPDF
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function setupPDF() {
var slideSize = getComputedSlideSize( window.innerWidth, window.innerHeight );
// Dimensions of the PDF pages
Function initDriverFn
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
return function initDriverFn(animationDetails) {
if (animationDetails.from && animationDetails.to) {
var fromAnimation = prepareAnimation(animationDetails.from);
var toAnimation = prepareAnimation(animationDetails.to);
if (!fromAnimation && !toAnimation) return;
Function _checkPlatforms
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_checkPlatforms: function() {
self.platforms = [];
var grade = 'a';
if (self.isWebView()) {
Function when
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.when = function (what, handler) {
var redirect, handlerIsString = isString(handler);
if (isString(what)) what = $urlMatcherFactory.compile(what);
if (!handlerIsString && !isFunction(handler) && !isArray(handler))
Function positionView
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function positionView(target, popoverEle) {
var targetEle = jqLite(target.target || target);
var buttonOffset = $ionicPosition.offset(targetEle);
var popoverWidth = popoverEle.prop('offsetWidth');
var popoverHeight = popoverEle.prop('offsetHeight');
Function loadAndCompile
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function loadAndCompile(options) {
options = extend({
template: '',
templateUrl: '',
scope: null,
Function cueAutoSlide
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function cueAutoSlide() {
cancelAutoSlide();
if( currentSlide ) {
Function initialize
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
initialize: function(options) {
var self = this;
self.__container = self.el = options.el;
self.__content = options.el.firstElementChild;
self.isNative = true;
Function prelink
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function prelink($scope, $element, $attr, ctrl) {
if (isHeader) {
$scope.$watch(function() { return $element[0].className; }, function(value) {
var isShown = value.indexOf('ng-hide') === -1;
var isSubheader = value.indexOf('bar-subheader') !== -1;
Function start
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
start: function(e) {
var hitX = ionic.tap.pointerCoord(e).x;
if (hitX > 0 && hitX < 30) {
return;
}
Function isActiveScope
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
isActiveScope: function(scope) {
if (!scope) return false;
var climbScope = scope;
var currentHistoryId = this.currentHistoryId();
Function createBackgrounds
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function createBackgrounds() {
var printMode = isPrintingPDF();
// Clear prior backgrounds
Function packageAnimations
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function packageAnimations(element, event, options, animations, fnName) {
var operations = groupEventedAnimations(element, event, options, animations, fnName);
if (operations.length === 0) {
var a,b;
if (fnName === 'beforeSetClass') {
Function onRelease
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function onRelease(ev) {
if (isPrimary && viewTransition && dragPoints && dragPoints.length > 1) {
var now = Date.now();
var releaseX = getDragX(ev);
Function openAmount
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
self.openAmount = function(amount) {
var maxLeft = self.left && self.left.width || 0;
var maxRight = self.right && self.right.width || 0;
// Check if we can move to that side, depending if the left/right panel is enabled
Function transition
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var transition = $state.transition = resolved.then(function () {
var l, entering, exiting;
if ($state.transition !== transition) return TransitionSuperseded;
Function keyboardFocusIn
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function keyboardFocusIn(e) {
clearTimeout(keyboardFocusOutTimer);
//console.log("keyboardFocusIn from: " + e.type + " at: " + Date.now());
if (!e.target ||
Function snapToRest
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
self.snapToRest = function(e) {
// We want to animate at the end of this
self.content.enableAnimation();
isDragging = false;