git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6e5a6a2
)
Simplified a selector in the .live() tests.
author
jeresig
<jeresig@gmail.com>
Mon, 30 Nov 2009 19:02:03 +0000
(14:02 -0500)
committer
jeresig
<jeresig@gmail.com>
Mon, 30 Nov 2009 19:02:03 +0000
(14:02 -0500)
test/unit/event.js
patch
|
blob
|
history
diff --git
a/test/unit/event.js
b/test/unit/event.js
index
e2ed0e3
..
65b08af
100644
(file)
--- a/
test/unit/event.js
+++ b/
test/unit/event.js
@@
-796,8
+796,8
@@
test(".live()/.die()", function() {
equals( livee, 0, "Verify that second handler doesn't." );
// and one pair in inverse
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;
lived = 0;
livee = 0;