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 6d0fd9b..3032497 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 ) {