Showing 295 of 1,636 total issues
Avoid deeply nested control flow statements. Open
Open
if (match) {
html = html.replace(match[0], '');
chars = false;
}
Avoid deeply nested control flow statements. Open
Open
if ( typeof aPreviousChildElement.setAttribute == 'function' && aPreviousChildElement.tagName != "BR" ) {
previousParentElement = aPreviousChildElement;
break;
}
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 (handler.comment) handler.comment(html.substring(4, index));
Avoid deeply nested control flow statements. Open
Open
if( touch.captured || isVerticalSlide( currentSlide ) ) {
event.preventDefault();
}
Avoid deeply nested control flow statements. Open
Open
} else if (scrollTop > maxScrollTop) {
scrollTop = maxScrollTop;
} else {
Avoid deeply nested control flow statements. Open
Open
if (!self.__refreshActive) {
self.__startDeceleration(timeStamp);
}
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);
}
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 + ' ';
}
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 (hist.historyId === currentView.historyId) {
direction = DIRECTION_FORWARD;
} else if (currentView.historyId !== hist.historyId) {
direction = DIRECTION_ENTER;
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 (tmp && tmp.parentHistoryId === hist.parentHistoryId) {
direction = DIRECTION_SWAP;
}
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 (forwardView && currentView.stateId !== forwardView.stateId &&
currentView.historyId === forwardView.historyId) {
// they navigated to a new view but the stack already has a forward view
// since its a new view remove any forwards that existed
tmp = getHistoryById(forwardView.historyId);
Avoid deeply nested control flow statements. Open
Open
} else if (version == 7) {
//iPhone == 7.0 WebView
viewportProperties.height = DEVICE_HEIGHT;
}
Avoid deeply nested control flow statements. Open
Open
if (initHeight) viewportProperties.height = '0';
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
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 (tmp && tmp.parentHistoryId === currentView.historyId) {
direction = DIRECTION_ENTER;
}