diff options
author | jeresig <jeresig@gmail.com> | 2011-04-12 00:12:27 -0400 |
---|---|---|
committer | jeresig <jeresig@gmail.com> | 2011-04-12 00:12:27 -0400 |
commit | 31b3c44db3b26274b1ad0efd46952ecc2a9380cc (patch) | |
tree | b9164651400971a9927b2984b51d86293232ff39 /src/core.js | |
parent | 2d27ac4d291fb82e8859a6bc2ef2b0c2555c6916 (diff) | |
parent | 926884bf1f071b6dd92f0611d905b2cbffa16a19 (diff) | |
download | jquery-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.js | 7 |
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; + } + } } } |