]> source.dussan.org Git - jquery.git/commitdiff
Remove test for bug #7369 to move the fix to a separate branch for a sooner pull 283/head
authortimmywil <tim.willison@thisismedium.com>
Thu, 31 Mar 2011 03:23:38 +0000 (23:23 -0400)
committertimmywil <tim.willison@thisismedium.com>
Thu, 31 Mar 2011 03:23:38 +0000 (23:23 -0400)
src/traversing.js
test/unit/traversing.js

index 49197c1f7995c68e4ebb040f83e8bc51e74968cf..91bc017e538519b5e7bb4a7ad6629f7e30cac756 100644 (file)
@@ -112,7 +112,7 @@ jQuery.fn.extend({
 
                        return ret;
                }
-               
+
                // String
                var pos = POS.test( selectors ) || typeof selectors !== "string" ?
                                jQuery( selectors, context || this.context ) :
@@ -135,7 +135,7 @@ jQuery.fn.extend({
                        }
                }
 
-               ret = ret.length > 1 ? jQuery.unique(ret) : ret;
+               ret = ret.length > 1 ? jQuery.unique( ret ) : ret;
 
                return this.pushStack( ret, "closest", selectors );
        },
index 43a9f22a21f948ac1f80c9abea564d29c2d2ac50..117e460003c7b52fa94b338cff27d69edb7b8df3 100644 (file)
@@ -168,9 +168,6 @@ test("closest()", function() {
 
        // Test on disconnected node
        equals( jQuery("<div><p></p></div>").find("p").closest("table").length, 0, "Make sure disconnected closest work." );
-       // Bug #7369
-       equals( jQuery('<div foo="bar"></div>').closest('[foo]').length, 1, "Disconnected nodes with attribute selector" );
-       equals( jQuery('<div></div>').closest('[lang]').length, 0, "Disconnected nodes with non-existent attribute selector" );
 });
 
 test("closest(Array)", function() {