Extjs 4.2 Parameter in listeners function
I've got problem with my controller
Ext.define('app.controller.myController', {
init: function() {
this.control({
'#myinputfield': {
change: this.textFieldChange(parameter)
}
})
},
textFieldChange: function(parameter) {
//do something
}
});
its look like this the problem is when i give parameter here
change: this.textFieldChange(parameter)
then its fire up after site load and I don't know why.
without parameter its waiting for change event like it should can any1
help me please ?
No comments:
Post a Comment