Commit e7912805 authored by jeresig's avatar jeresig

A large refactor of the event handling logic. Data and namespace information...

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.
parent 8a4b2102
This diff is collapsed.
...@@ -88,8 +88,9 @@ test("bind(), namespace with special add", function() { ...@@ -88,8 +88,9 @@ test("bind(), namespace with special add", function() {
}, },
setup: function(){}, setup: function(){},
teardown: function(){}, teardown: function(){},
add: function( handler, data, namespaces ) { add: function( handleObj ) {
return function(e) { var handler = handleObj.handler;
handleObj.handler = function(e) {
e.xyz = ++i; e.xyz = ++i;
handler.apply( this, arguments ); handler.apply( this, arguments );
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment