why would you use delegate for a custom event? makes no sense to me.

--
Fábio Miranda Costa
front...@globocore
*github:* fabiomcosta
*twitter:* @fabiomiranda
*ramal:* 6410



On Fri, Sep 10, 2010 at 2:41 PM, Savageman <[email protected]> wrote:

> Thanks for your help. I added the script after MooTools load and
> before my domcontentloaded. It didn't do the job. :/ I surely missed
> something.
>
> On 10 sep, 17:14, Slik Jay <[email protected]> wrote:
> > 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. :-)
>

Reply via email to