Multiple event handlers for one event

  • Thread starter Thread starter John S
  • Start date Start date
J

John S

Can one event (keyup for instance), have more than one event handler
assigned / handle it?
 
Hi John,

Definitely. You can have as many as you want. Even you may have one event
hooked several times by the same method of the same object. In this case the
method will be called several times, which sometimes leads to hard-to-find
bugs.
Bare in mind that the order of execution of event handlers is not defined.
 
Back
Top