Question:
How can I get the registered events from a control?
suppose I have a button with a press event, which has an event handler.
From the controller, I know I can use this.getView().byId("buttonid").mEventRegistry.
This will return me an object with all bound events of the control.
Via Object.Keys I can get an array of the event names, and continue my way.
Here's the catch though: mEventRegistry is a private property, which I'm not supposed to use
But there isn't any "getEventRegistry()" method.
So how can I do this the correct way?