Distill

Change the way you handle events with "Distill". Don't bind your events to domnodes. Let them bubble.

Update: Distill 1.2

Changelog 1.2: (by Mikko Wuokko 28/02/2008)

Advantages

Distill's advantages above normal event binding are the following

How to use Distill

Below you will find an example. This example needs the jQuery library.

HTML: <button class="com_eventhandler">click me</button> JS: myhandlers.eventhandler.click = function() { alert("ok"); } window.onload = function () { $.distill("click", myhandlers); }
Download Distill