Sys.EventHandlerList getHandler Method
Returns a single method that can be invoked to call all handlers sequentially for the specified event.
var e = new Sys.EventHandlerList(); var a = Sys.EventArgs.Empty; e.addHandler(id, handler); var f = e.getHandler(id); if (f) f(this, a);
Call the getHandler method to raise events in an EventHandlerList object. You first call the getHandler method with the id parameter set to the identifier of the event to raise. You then call the method returned by getHandler to call all the handlers for the event in order.
You should call getHandler immediately before you call the returned method, in case there is any change to the contents of the Sys.EventHandlerList object.
The getHandler method raises only the events declared in a EventHandlerList instance and will not include handlers declared elsewhere.