aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authortimmywil <tim.willison@thisismedium.com>2011-03-16 14:41:26 -0400
committertimmywil <tim.willison@thisismedium.com>2011-03-16 14:41:26 -0400
commit929792834f77e075e4b5397fb4b25b1a2dcbd49a (patch)
treeff6f98d3b5fc8a9145adf9adb3e806fcf2810cf9 /src
parent7a69e34a5cd4df37762cbee9c9468c96c0ac3017 (diff)
downloadjquery-929792834f77e075e4b5397fb4b25b1a2dcbd49a.tar.gz
jquery-929792834f77e075e4b5397fb4b25b1a2dcbd49a.zip
Organizing vars
Diffstat (limited to 'src')
-rw-r--r--src/traversing.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/traversing.js b/src/traversing.js
index fa6aae2fe..30d60435d 100644
--- a/src/traversing.js
+++ b/src/traversing.js
@@ -18,7 +18,7 @@ var runtil = /Until$/,
jQuery.fn.extend({
find: function( selector ) {
var self = this,
- ret, i, l;
+ i, l;
if ( typeof selector !== "string" ) {
return jQuery( selector ).filter(function() {
@@ -30,9 +30,8 @@ jQuery.fn.extend({
});
}
- ret = this.pushStack( "", "find", selector );
-
- var length, n, r;
+ var ret = this.pushStack( "", "find", selector ),
+ length, n, r;
for ( i = 0, l = this.length; i < l; i++ ) {
length = ret.length;
jQuery.find( selector, this[i], ret );