diff options
Diffstat (limited to 'test/unit/event.js')
-rw-r--r-- | test/unit/event.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/unit/event.js b/test/unit/event.js index fbb156f69..ed9621317 100644 --- 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(){}, - 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 ); }; |