git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
A large refactor of the event handling logic. Data and namespace information is maint...
[jquery.git]
/
test
/
unit
/
event.js
diff --git
a/test/unit/event.js
b/test/unit/event.js
index
fbb156f
..
ed96213
100644
(file)
--- a/
test/unit/event.js
+++ b/
test/unit/event.js
@@
-88,8
+88,9
@@
test("bind(), namespace with special add", function() {
},
setup: function(){},
teardown: function(){},
},
setup: function(){},
teardown: function(){},
- add: function( handler, data, namespaces ) {
- return function(e) {
+ add: function( handleObj ) {
+ var handler = handleObj.handler;
+ handleObj.handler = function(e) {
e.xyz = ++i;
handler.apply( this, arguments );
};
e.xyz = ++i;
handler.apply( this, arguments );
};