I'm using event delegation a lot recently. I even opened a ticket for
it -
http://prototype.lighthouseapp.com/projects/8886/tickets/435-eventdelegate-and-elementmethodsdelegate
The problem I see in your approach, is that Event.stopObserving won't
clear callback from cache, but if your
One of the downsides of the current $super-based implementations is
that it's ridiculously complicated to pass the whole set of arguments
to the parent's method (the equivalent of calling super without
passing any arguments in ruby):
var Child = Class.create(Parent, {
doStuff: function($super)
FWIW $super is *not* gone.
_I_ happen not to like it.
On Jan 5, 2:44 am, kangax kan...@gmail.com wrote:
On Jan 4, 7:12 pm, Tobie Langel tobie.lan...@gmail.com wrote:
[...]
On the other hand, you'd have to handle this like so with your
proposed implementation:
var Child =