Fixing spacing problems from rkatic's patches.

This commit is contained in:
John Resig 2009-11-07 17:40:47 +01:00
parent 3dc5bc5a8b
commit 76f6f0d39d

View file

@ -58,14 +58,14 @@ jQuery.fn.extend({
var cur = this, closer = 0; var cur = this, closer = 0;
while ( cur && cur.ownerDocument && cur !== context ) { while ( cur && cur.ownerDocument && cur !== context ) {
if ( pos ? pos.index(cur) > -1 : jQuery(cur).is(selector) ) { if ( pos ? pos.index(cur) > -1 : jQuery(cur).is(selector) ) {
jQuery.lastCloser = closer; jQuery.lastCloser = closer;
return cur; return cur;
} }
cur = cur.parentNode; cur = cur.parentNode;
closer++; closer++;
} }
jQuery.lastCloser = -1; jQuery.lastCloser = -1;
return null; return null;
}); });
}, },