Is it possible to remove a listener from Ext.Panel after a call? I have a crane listener that I want to remove after a call for the first time. I tried many ways to remove the listener, but it still rings:
registerListeners: function()
{
this.view.on('tap', this.onTap, this, {element: 'body'});
},
unregisterListeners: function(evt, el, o)
{
console.log("Removing Event...");
this.view.el.un('tap', this.onTap, this);
},
onTap: function(evt, el, o)
{
Ext.ControllerManager.get('mycontroller').unregisterListeners();
}
Am I really confused?!? :( Any suggestions?
Tariq source
share