Skip to content

Commit

Permalink
Simplified a selector in the .live() tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeresig committed Nov 30, 2009
1 parent 6e5a6a2 commit 21dead4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/unit/event.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 21dead4

Please sign in to comment.