[Bug 16491] Add simpler and better event registration system

https://www.w3.org/Bugs/Public/show_bug.cgi?id=16491

Jonas Sicking <jonas@sicking.cc> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jonas@sicking.cc

--- Comment #1 from Jonas Sicking <jonas@sicking.cc> 2012-03-23 23:46:26 UTC ---
It would be very nice if you could do something like:

target.on.add({ onclick: function(event) { ... },
                onmouseover: function(event) { ... },
                onmouseout: function(event) { ... },
                someOtherState: 4, });

This way could could actually do object-oriented, rather than having to have
glue functions which forward to methods on objects.

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Friday, 23 March 2012 23:46:29 UTC