aboutsummaryrefslogtreecommitdiffstats
path: root/src/core.js
diff options
context:
space:
mode:
authorjeresig <jeresig@gmail.com>2011-04-12 00:12:27 -0400
committerjeresig <jeresig@gmail.com>2011-04-12 00:12:27 -0400
commit31b3c44db3b26274b1ad0efd46952ecc2a9380cc (patch)
treeb9164651400971a9927b2984b51d86293232ff39 /src/core.js
parent2d27ac4d291fb82e8859a6bc2ef2b0c2555c6916 (diff)
parent926884bf1f071b6dd92f0611d905b2cbffa16a19 (diff)
downloadjquery-31b3c44db3b26274b1ad0efd46952ecc2a9380cc.tar.gz
jquery-31b3c44db3b26274b1ad0efd46952ecc2a9380cc.zip
Merge branch 'bug_4366' of https://github.com/jboesch/jquery into jboesch-bug_4366
Diffstat (limited to 'src/core.js')
-rw-r--r--src/core.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/core.js b/src/core.js
index d3641365b..fa15cffc0 100644
--- a/src/core.js
+++ b/src/core.js
@@ -613,8 +613,11 @@ jQuery.extend({
}
}
} else {
- for ( var value = object[0];
- i < length && callback.call( value, i, value ) !== false; value = object[++i] ) {}
+ for ( ; i < length; ) {
+ if ( callback.call( object[ i ], i, object[ i++ ] ) === false ) {
+ break;
+ }
+ }
}
}