Hi,
I need to bind different functions to an event, in different moments.
for regular js objects, it is:
$('#tt').bind({ focus: function (e) { console.log ("Doing A"); } });
...
$('#tt').bind({ focus: function (e) { console.log ("Doing b"); } });
It works: on focus, both A and B are printer on the console.
but this thing with inputEvents of textbox (for example) won't work, you will see only B.
$('#tt').textbox({
inputEvents:$.extend({},$.fn.textbox.defaults.inputEvents,{
focus: function (e) { console.log ("Doing a"); }
})
});
....
$('#tt').textbox({
inputEvents:$.extend({},$.fn.textbox.defaults.inputEvents,{
focus: function (e) { console.log ("Doing b"); }
})
});
Is there a workaround or another way to do it?
you can try it here
http://jsfiddle.net/pug53mus/21/thanks,
Ric