Listener event to two or more functions
Hi community,
I have a problem,
I need define inside of Controller, a event for listeners two functions and this not work.
The source is:
Code:
Ext.define('myProyect.controller.FormController', {
extend: 'Ext.app.Controller',
config: {
refs: {
fieldid : 'textfield[id=fieldid]'
},
control: {
fieldid : {
change : ['ChangeValue', 'ChangeValue2']
}
}
},
ChangeValue : function(me, newValue, oldValue){
console.debug(me);
},
ChangeValue2 : function(me, newValue, oldValue){
console.debug('2', me);
}
});
How to configure the property 'control'??
Thanks for all