beCodeMyFriend/Cuore.js — Issue #7: [WISH] Shortcut for adding executor handlers to component
Author: hell03610
Created: 2012-01-29 20:24:07+00:00
State: open

To add an executor handler to a component now it has to be writter as:

this.addHandler('signal_signature',new CUORE.Handlers.Executor('methodToExecute');

it would be cool to simplify those cases by just passing the signal signature and name of the method to be executed:

this.addHandler('signal_signature','methodToExecute');

this.addHandler should distiguish if second parameter is a string or an object/handler