February 2010
1 post
2 tags
jQuery + custom events = 'polymorphism' for the...
Writing Javascript event handlers for clicking, hovering, focusing etc is basic stuff, and jQuery makes it absurdly easy with .bind() and .live(). One thing these two also support, which I never paid much attention to, are custom events. I recently needed an elegant solution for quite a complex DOM manipulation. That’s when custom events popped into my mind and - voila - turned out to be...
Feb 22nd
8 notes