]> source.dussan.org Git - jquery.git/commitdiff
Ensure that selector is not broken.
authorRobert Katic <robert.katic@gmail.com>
Tue, 13 Apr 2010 13:11:56 +0000 (15:11 +0200)
committerjeresig <jeresig@gmail.com>
Thu, 23 Sep 2010 16:08:29 +0000 (12:08 -0400)
test/unit/event.js

index 6d0fd9b570332085eb1ea392f44355a09011dce3..30324978bd1eb8a35caefd255cea501b3b6c5c03 100644 (file)
@@ -210,7 +210,7 @@ test("live/die(Object), delegate/undelegate(String, Object)", function() {
        expect(6);
        
        var clickCounter = 0, mouseoverCounter = 0,
-               $p = jQuery("#firstp"), $a = $p.find("a").first();
+               $p = jQuery("#firstp"), $a = $p.find("a:first");
        
        var events = {
                click: function( event ) {