Skip to content

Commit

Permalink
chore(style): fix jshint errors blocking npm test
Browse files Browse the repository at this point in the history
Refs #2398
  • Loading branch information
marcysutton authored and hankduan committed Aug 25, 2015
1 parent 19738d3 commit 8d936df
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .jshintrc
Expand Up @@ -16,5 +16,6 @@
"loopfunc": true,
"sub": true,
"undef": true,
"quotmark": "single"
"quotmark": "single",
"evil": true
}
10 changes: 5 additions & 5 deletions lib/clientsidescripts.js
Expand Up @@ -33,7 +33,7 @@ function wrapWithHelpers(fun) {
return new Function(
helpers.join(';') + ';' +
' return (' + fun.toString() + ').apply(this, arguments);');
};
}

/**
* Wait until Angular has finished rendering and has
Expand Down Expand Up @@ -170,7 +170,7 @@ function findRepeaterRows(repeater, exact, index, using) {
}
var row = rows[index] || [], multiRow = multiRows[index] || [];
return [].concat(row, multiRow);
};
}
functions.findRepeaterRows = wrapWithHelpers(findRepeaterRows, repeaterMatch);

/**
Expand Down Expand Up @@ -215,7 +215,7 @@ function findAllRepeaterRows(repeater, exact, using) {
}
}
return rows;
};
}
functions.findAllRepeaterRows = wrapWithHelpers(findAllRepeaterRows, repeaterMatch);

/**
Expand Down Expand Up @@ -315,7 +315,7 @@ function findRepeaterElement(repeater, exact, index, binding, using, rootSelecto
}
}
return matches;
};
}
functions.findRepeaterElement = wrapWithHelpers(findRepeaterElement, repeaterMatch);

/**
Expand Down Expand Up @@ -412,7 +412,7 @@ function findRepeaterColumn(repeater, exact, binding, using, rootSelector) {
}
}
return matches;
};
}
functions.findRepeaterColumn = wrapWithHelpers(findRepeaterColumn, repeaterMatch);

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/element.js
Expand Up @@ -907,7 +907,7 @@ ElementFinder.prototype.$ = function(selector) {
*/
ElementFinder.prototype.isPresent = function() {
return this.parentElementArrayFinder.getWebElements().then(function(arr) {
if (arr.length == 0) {
if (arr.length === 0) {
return false;
}
return arr[0].isEnabled().then(function() {
Expand Down

0 comments on commit 8d936df

Please sign in to comment.