That's good to know! Guess I'll have to change it in my 10+ other
classes hehe... I'm used to coding pure javascript so... I guess i
don't always take full advantage of using a framework!


On Oct 12, 4:02 pm, Tom Occhino <[EMAIL PROTECTED]> wrote:
> Check the code inside MooTools SilverTab.  We use this technique all  
> over.  (also, FYI, that's the whole point of the $ function, to be  
> able to pass a string id, or an element to be extended)
>
> this.element = $(element);
>
> On Oct 12, 2008, at 2:50 PM, Rajeev J Sebastian wrote:
>
>
>
> > On Sun, Oct 12, 2008 at 11:47 PM, SilverTab <[EMAIL PROTECTED]> wrote:
>
> >> Rajeev: Would this work if the argument (el) is the dom element  
> >> itself
> >> and not its id? I was only doing it that way so that the user can  
> >> pass
> >> either the element's id or the element itself...
>
> > Yes, it will work.
>
> > Regards
> > Rajeev J Sebastian

Reply via email to