git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refactor specialAll into add and remove hooks for existing special events, live now...
[jquery.git]
/
test
/
unit
/
event.js
diff --git
a/test/unit/event.js
b/test/unit/event.js
index
8906728
..
b2270ad
100644
(file)
--- a/
test/unit/event.js
+++ b/
test/unit/event.js
@@
-490,7
+490,7
@@
test("toggle(Function, Function, ...)", function() {
});
test(".live()/.die()", function() {
});
test(".live()/.die()", function() {
- expect(52);
+ expect(53);
var submit = 0, div = 0, livea = 0, liveb = 0;
var submit = 0, div = 0, livea = 0, liveb = 0;
@@
-579,6
+579,9
@@
test(".live()/.die()", function() {
jQuery("#foo").trigger('click');
equals( clicked, 2, "die with a context");
jQuery("#foo").trigger('click');
equals( clicked, 2, "die with a context");
+ // Test binding with event data
+ jQuery("#foo").live("click", true, function(e){ equals( e.data, true, "live with event data" ); });
+ jQuery("#foo").trigger("click").die("click");
// Verify that return false prevents default action
jQuery("#anchor2").live("click", function(){ return false; });
// Verify that return false prevents default action
jQuery("#anchor2").live("click", function(){ return false; });