Organizing vars

This commit is contained in:
timmywil 2011-03-16 14:41:26 -04:00
parent 7a69e34a5c
commit 929792834f

View file

@ -18,7 +18,7 @@ var runtil = /Until$/,
jQuery.fn.extend({ jQuery.fn.extend({
find: function( selector ) { find: function( selector ) {
var self = this, var self = this,
ret, i, l; i, l;
if ( typeof selector !== "string" ) { if ( typeof selector !== "string" ) {
return jQuery( selector ).filter(function() { return jQuery( selector ).filter(function() {
@ -30,9 +30,8 @@ jQuery.fn.extend({
}); });
} }
ret = this.pushStack( "", "find", selector ); var ret = this.pushStack( "", "find", selector ),
length, n, r;
var length, n, r;
for ( i = 0, l = this.length; i < l; i++ ) { for ( i = 0, l = this.length; i < l; i++ ) {
length = ret.length; length = ret.length;
jQuery.find( selector, this[i], ret ); jQuery.find( selector, this[i], ret );