The selector is optional. You just pass the callback function as the second
parameter.
On May 23, 2013 8:01 PM, "Dron Rathore" <notifications@github.com> wrote:

> In hearth/media/js/cat-dropdown.js:
>
> >      z.body.on('click', '.dropdown a', toggleMenu)
> >            .on('mouseup', '.cat-menu a', handleDropDownClicks)
> > -          .on('mousedown', '.cat-menu a', handleDropDownMousedowns);
> > +          .on('mousedown', '.cat-menu a', handleDropDownMousedowns)
> > +          .on('blur','#cat-list',handleDropDownDisplay)
> > +          .on('click','#cat-list',handleDropDownDisplay)
> > +          .on('keydown','body',handleDropDownDisplayByKey);
>
> Then what will be the dom object Argument 2 for the call of on()? I'm
> sorry i am not able to locate the Z code.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/mozilla/fireplace/pull/143/files#r4375214>
> .
>