I wrote small plugin for mootools more's delegation http://jsfiddle.net/slik/vMeNG/
On Fri, Sep 10, 2010 at 6:09 PM, Savageman <[email protected]> wrote: > Hello, > > I would like to delegate some custom events. Is that possible? > > I have something like that: > > var $main = document.id('main'); > $main.addEvent('custom:relay(.class)', myFunction); > $main.getElements('.class').fireEvent('cutom'); > > The array $main.getElements is not empty, but my function doesn't > trigger. Any help appreciated. :-)
