View Full Version : Controller - >Event- Listeners not working anymore

1 May 2014, 11:17 PM
It seems that all my Controller listeners not working anymore. I get the following message:

if (!fn) {
sourceClass: Ext.getClassName(this.observable),
sourceMethod: "addListener",
msg: "The specified callback function is undefined"

I have something like this:

init : function() {
'admindevicespanel' : {
beforeshow : this.beforePanelShowed
'admindevicespanel button[name=deleteDevice]' : {
click : this.deleteAdminDevice

Any ideas?

It seems that the problem occurs as a result of custom components.
Ext.define('portal.view.components.DevicePreview', { alias : 'widget.devicepreview',
extend : 'Ext.form.Panel',

makes the problem

5 May 2014, 3:44 AM
I don't see any selectors in your control method that would match the xtype of 'devicepreview' in your view. Your control method would match 'admindevicespanel' and 'admindevicespanel button[name=deleteDevice]' but not the form panel subclass you have given.