afaik you just do this.get('tag') and check it.

I'd just implement it and plan on using it on just table elements, I wouldn't 
bother with the check.

On Jul 14, 2011, at 9:29 PM, Steve Onnis wrote:

> Like if i only want to implement something on a table element for example
>  
> From: Ryan Florence [mailto:rpflore...@gmail.com] 
> Sent: Friday, 15 July 2011 1:17 PM
> To: mootools-users@googlegroups.com
> Subject: Re: [Moo] Element.implement
>  
> You might have asked "Can you implement methods on only certain types of 
> elements"
>  
> You'll need to do this.get('tag') and check against it in your method.
>  
> And you might have asked "Can you implement methods on a particular element".
>  
> In this case, simple append a method to the element.
>  
> var el = $('el');
> el.whatev = function (){};
>  
> On Jul 14, 2011, at 7:29 PM, Steve Onnis wrote:
> 
> 
> Can you implement things on particular elements only? Or do you have to check 
> the type of element in the implements function and deal with it there?
>  
> Steve
>  

Reply via email to