1

I would like to find which event handlers are registered over an object (in my concrete case it's the pagetree in the TYPO3 CMS backend).

Is there a method to get all event handlers ?

Fedir RYKHTIK
  • 9,844
  • 6
  • 58
  • 68

1 Answers1

1

You can simply walk through its events property. Most of the members will be just true, but those actually representing attached events will be objects. Type something like:

var es = Ext.getCmp('my-tree-id').events;
for (var k in es) {
    if (Ext.isObject(es[k])) {
        console.log(es[k]);
    }
}

If your object is a Ext.dom.Element, you would check Ext.cache['elementId'].events instead.

Greendrake
  • 3,657
  • 2
  • 18
  • 24