]> source.dussan.org Git - jquery.git/commitdiff
Simplified a selector in the .live() tests.
authorjeresig <jeresig@gmail.com>
Mon, 30 Nov 2009 19:02:03 +0000 (14:02 -0500)
committerjeresig <jeresig@gmail.com>
Mon, 30 Nov 2009 19:02:03 +0000 (14:02 -0500)
test/unit/event.js

index e2ed0e3db99cb9def57952fbd9db847e9e9fc532..65b08af8dc1f86c99ebf27463788380d23063e87 100644 (file)
@@ -796,8 +796,8 @@ test(".live()/.die()", function() {
        equals( livee, 0, "Verify that second handler doesn't." );
 
        // and one pair in inverse
-       jQuery('#liveHandlerOrder span#liveSpan2').live('click', function(){ livee++; });
-       jQuery('#liveHandlerOrder span#liveSpan2 a').live('click', function(){ lived++; return false; });
+       jQuery('span#liveSpan2').live('click', function(){ livee++; });
+       jQuery('span#liveSpan2 a').live('click', function(){ lived++; return false; });
 
        lived = 0;
        livee = 0;