Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e3f26b5

Browse files
committed
style(jqLite): use the common for loop code style
1 parent c1cb341 commit e3f26b5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/jqLite.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -925,9 +925,8 @@ forEach({
925925
*/
926926
JQLite.prototype[name] = function(arg1, arg2, arg3) {
927927
var value;
928-
var nodeCount = this.length;
929928

930-
for(var i=0; i < nodeCount; i++) {
929+
for(var i = 0, ii = this.length; i < ii; i++) {
931930
if (isUndefined(value)) {
932931
value = fn(this[i], arg1, arg2, arg3);
933932
if (isDefined(value)) {

0 commit comments

Comments
 (0)