Showing 295 of 1,637 total issues
Avoid deeply nested control flow statements. Open
Open
while( pastFragments.length ) {
var pastFragment = pastFragments.pop();
pastFragment.classList.add( 'visible' );
pastFragment.classList.remove( 'current-fragment' );
}
Avoid deeply nested control flow statements. Open
Open
if( touch.captured || isVerticalSlide( currentSlide ) ) {
event.preventDefault();
}
Avoid deeply nested control flow statements. Open
Open
if ( typeof aPreviousChildElement.setAttribute == 'function' && aPreviousChildElement.tagName != "BR" ) {
previousParentElement = aPreviousChildElement;
break;
}
Function render
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
self.render = function(registerData, viewLocals, enteringView, leavingView, renderStart, renderEnd) {
Function $get
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function($animateCss, $rootScope, $$AnimateRunner, $rootElement, $document, $sniffer) {
Avoid deeply nested control flow statements. Open
Open
if (tmp && tmp.parentHistoryId === currentView.historyId) {
direction = DIRECTION_ENTER;
}
Avoid deeply nested control flow statements. Open
Open
if (!self.__refreshActive) {
self.__startDeceleration(timeStamp);
}
Avoid deeply nested control flow statements. Open
Open
} else if (scrollTop > maxScrollTop) {
scrollTop = maxScrollTop;
} else {
Avoid deeply nested control flow statements. Open
Open
if (tmp && tmp.parentHistoryId === hist.parentHistoryId) {
direction = DIRECTION_SWAP;
}
Avoid deeply nested control flow statements. Open
Open
for (y = 0; y < splitClasses.length; y++) {
cssClass = splitClasses[y];
el.setAttribute('class', (
(" " + (el.getAttribute('class') || '') + " ")
.replace(/[\n\t]/g, " ")
Avoid deeply nested control flow statements. Open
Open
if (climbScope.hasOwnProperty('$historyId')) {
return true;
}
Avoid deeply nested control flow statements. Open
Open
for (y = 0; y < splitClasses.length; y++) {
cssClass = splitClasses[y].trim();
if (existingClasses.indexOf(' ' + cssClass + ' ') === -1) {
existingClasses += cssClass + ' ';
}
Avoid deeply nested control flow statements. Open
Open
if (initHeight) viewportProperties.height = '0';
Avoid deeply nested control flow statements. Open
Open
for (y = 0; y < data[k][x].t; y++) {
createSvgElement(k, data[k][x].fn(y, spinnerName), ele, spinnerName);
}
Function start
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
start: function(stepCallback, verifyCallback, completedCallback, duration, easingMethod, root) {
Avoid deeply nested control flow statements. Open
Open
if (!self.__enableScrollX && self.__refreshHeight != null) {
// hide the refresher when it's behind the header bar in case of header transparency
if (scrollTop < 0) {
self.__refreshHidden = false;
Avoid deeply nested control flow statements. Open
Open
if (b.nodeType == 1) {
if (b.classList.contains(BACK_TEXT)) {
for (z = 0; z < b.children.length; z++) {
d = b.children[z];
Avoid deeply nested control flow statements. Open
Open
if (isArray(encoded)) {
result += map(encoded, encodeDashes).join("-");
} else {
result += encodeURIComponent(encoded);
}
Function resolveState
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function resolveState(state, params, paramsAreFiltered, inherited, dst, options) {
Avoid deeply nested control flow statements. Open
Open
if (hist.historyId === currentView.historyId) {
direction = DIRECTION_FORWARD;
} else if (currentView.historyId !== hist.historyId) {
direction = DIRECTION_ENTER;