Improve bkEventExecutor interface implementation

What was done before isn't valid JS; This does the same thing, while keeping the JS syntax valid.
This commit is contained in:
Ivan Kay 2014-04-24 19:51:11 -05:00
parent 3c7f8ae94e
commit 6ec85d5a8f

View file

@ -121,11 +121,11 @@ exports.on = function(
handlerList = eventType.getHandlerList( );
var result = { };
eventExecutor = new bkEventExecutor( ) {
eventExecutor = new bkEventExecutor( {
execute: function( l, evt ) {
handler.call( result, evt );
}
};
} );
/*
wph 20130222 issue #64 bad interaction with Essentials plugin
if another plugin tries to unregister a Listener (not a Plugin or a RegisteredListener)