diff options
author | jeresig <jeresig@gmail.com> | 2010-02-04 00:20:52 -0500 |
---|---|---|
committer | jeresig <jeresig@gmail.com> | 2010-02-04 00:20:52 -0500 |
commit | e7912805d6ee290071fb15fbca752e9f47fcd032 (patch) | |
tree | b5c6d809931d5b95ffcb463e7ebd2d8b6b467873 /test | |
parent | 8a4b2102ff57fb113267cd2824fa4f3a907ae9ed (diff) | |
download | jquery-e7912805d6ee290071fb15fbca752e9f47fcd032.tar.gz jquery-e7912805d6ee290071fb15fbca752e9f47fcd032.zip |
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.
Diffstat (limited to 'test')
-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 ); }; |