Showing 295 of 1,635 total issues
Function start
has 119 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function start() {
if (animationClosed) return;
if (!node.parentNode) {
close();
return;
Function createHeaderBar
has 119 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
self.createHeaderBar = function(isActive) {
var containerEle = jqLite('<div class="nav-bar-block">');
ionic.DomUtil.cachedAttr(containerEle, 'nav-bar', isActive ? 'active' : 'cached');
var alignTitle = $attrs.alignTitle || $ionicConfig.navBar.alignTitle();
Function $$AnimateRunnerFactory
has 114 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var $$AnimateRunnerFactory = ['$q', '$$rAFMutex', function($q, $$rAFMutex) {
var INITIAL_STATE = 0;
var DONE_PENDING_STATE = 1;
var DONE_COMPLETE_STATE = 2;
Function doTouchMove
has 113 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
doTouchMove: function(touches, timeStamp, scale) {
if (timeStamp instanceof Date) {
timeStamp = timeStamp.valueOf();
}
if (typeof timeStamp !== "number") {
Function study
has 113 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.study = function (invocables) {
if (!isObject(invocables)) throw new Error("'invocables' must be an object");
var invocableKeys = objectKeys(invocables || {});
// Perform a topological sort of invocables to build an ordered plan
Function htmlParser
has 107 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function htmlParser(html, handler) {
if (typeof html !== 'string') {
if (html === null || typeof html === 'undefined') {
html = '';
} else {
Function compile
has 104 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
compile: function(element, attr) {
//We create the tabNavTemplate in the compile phase so that the
//attributes we pass down won't be interpolated yet - we want
//to pass down the 'raw' versions of the attributes
Function $ViewDirective
has 104 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function $ViewDirective( $state, $injector, $uiViewScroll, $interpolate) {
function getService() {
return ($injector.has) ? function(service) {
return $injector.has(service) ? $injector.get(service) : null;
Function compile
has 99 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
compile: function(element, attr) {
var innerElement;
var scrollCtrl;
element.addClass('scroll-content ionic-scroll');
Function initialize
has 97 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
initialize: function(options) {
var self = this;
self.__container = options.el;
self.__content = options.el.firstElementChild;
Function transitionTo
has 95 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$state.transitionTo = function transitionTo(to, toParams, options) {
toParams = toParams || {};
options = extend({
location: true, inherit: false, relative: null, notify: true, reload: false, $retry: false
}, options || {});
Function transition
has 94 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
transition: function(direction, enableBack, allowAnimate) {
var deferred;
var enteringData = getTransitionData(viewLocals, enteringEle, direction, enteringView);
var leavingData = extend(extend({}, enteringData), getViewData(leavingView));
enteringData.transitionId = leavingData.transitionId = transitionId;
Function name
has 93 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Resource[name] = function(a1, a2, a3, a4) {
var params = {}, data, success, error;
/* jshint -W086 */ /* (purposefully fall through case statements) */
switch (arguments.length) {
Function initSwipeBack
has 93 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
self.initSwipeBack = function() {
var swipeBackHitWidth = $ionicConfig.views.swipeBackHitWidth();
var viewTransition, associatedNavBarCtrl, backView;
var deregDragStart, deregDrag, deregRelease;
var windowWidth, startDragX, dragPoints;
Function prepareAnchoredAnimation
has 92 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function prepareAnchoredAnimation(classes, outAnchor, inAnchor) {
var clone = jqLite(getDomNode(outAnchor).cloneNode(true));
var startingClasses = filterCssClasses(getClassVal(clone));
outAnchor.addClass(NG_ANIMATE_SHIM_CLASS_NAME);
Function calcWidths
has 90 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
self.calcWidths = function(textAlign, isPreviousTitle) {
var titleEle = getEle(TITLE);
var backBtnEle = getEle(BACK_BUTTON);
var x, y, z, b, c, d, childSize, bounds;
var childNodes = $element[0].childNodes;
File angular-sanitize.js
has 304 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* @license AngularJS v1.4.3
* (c) 2010-2015 Google, Inc. http://angularjs.org
* License: MIT
*/
Function prelink
has 82 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function prelink($scope, $element, $attr) {
var parentScope = $scope.$parent;
$scope.$watch(function() {
return (parentScope.$hasHeader ? ' has-header' : '') +
(parentScope.$hasSubheader ? ' has-subheader' : '') +
Function render
has 81 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function render(forceRerender) {
if (render.destroyed) return;
var i;
var ii;
var item;
Function slide
has 77 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function slide( h, v, f, o ) {
// Remember where we were at before
previousSlide = currentSlide;