This one’s an oldie but goodie I just pulled out of my tome of a ~/Sites directory. Similar to Aaron Newton’s concept of Events Arbiters, this class fires events for one object on another object, but I’ve applied the bubbling pattern you may be familiar with from native DOM events. Instead of bubbling up a hierarchy of elements, we just bubble up a hierarchy of controllers.
Related Submissions:
- Monitor the Scroll with e24ScrollEvents for Mootools e24ScrollEvents is a plug-in for Mootools that lets detect which elements are visible inside an scrolling area. To accomplish this it adds two new events...
- Directory Trees With PHP And jQuery Directory trees are a great way to search/view files while keeping their inherent hierarchy. This tutorial will help you create an effective directory tree with...
- Introducing MooTools ScrollSpy MooTools ScrollSpy is a unique but simple MooTools plugin that listens to page scrolling and fires events based on where the user has scrolled to...
- jQuery Special Events The jQuery special events API is a fairly flexible system by which you can specify bind and unbind hooks as well as default actions for...
- Removing inline Javascript and using Mootools addEvent() Javascript lets us run program logic on the client-side, meaning we can change HTML Elements dynamically based on some logic without reloading the page with...