Organizing vars
This commit is contained in:
parent
7a69e34a5c
commit
929792834f
|
@ -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 );
|
||||||
|
|
Loading…
Reference in a new issue