Hi,
I instanciate a button with a click handler
When I explicitely fire the event "click" I get a javascript error saying that button ( the first argument) is undefinedCode:var newButton = new Ext.Button({ id: decomp[i]+i, text: decomp[i], toggleGroup: 'role', listeners: { click: function(button, evt) { console.log('ca passe'); console.log(button); currentRole = button.getText().trim(); ............ } } })
What error could it be ?
Thank you in advance for your answers