From e7912805d6ee290071fb15fbca752e9f47fcd032 Mon Sep 17 00:00:00 2001 From: jeresig Date: Thu, 4 Feb 2010 00:20:52 -0500 Subject: A large refactor of the event handling logic. Data and namespace information is maintained in a separate object now, no longer on the event handler. Proxy functions are no longer needed, as a result. Additionally execution order of the handlers is maintained, fixing #4261, and the execution of handlers is maintained even while they're being removed. Live events will be refactored separately. --- test/unit/event.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'test') 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 ); }; -- cgit v1.2.3