News for hackers. Stuff that matters.
Re:Common JavaScript Gotchas by martinced on Sunday January 13, 2013 @10:10AM (#5050886)
Multiple registration of callbacks and "too many similar events firing" (and even circular event firing : event A triggers event B, event B triggers event A) can all be solved by using event filtering no!?

I'm not saying it's a good thing to work around the issue by using event filtering, but events filtering is a great technique.

You can also use your event filtering to "fail fast" during development: detect a duplicated event called back? Throw an exception / make your application fail.

There are no comments on this comment yet.