]> source.dussan.org Git - jquery.git/commitdiff
Fixing spacing problems from rkatic's patches.
authorJohn Resig <jeresig@gmail.com>
Sat, 7 Nov 2009 16:40:47 +0000 (17:40 +0100)
committerJohn Resig <jeresig@gmail.com>
Sat, 7 Nov 2009 16:40:47 +0000 (17:40 +0100)
src/traversing.js

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