Actually both of them should work but i have had some problems with
.invoke in IE since IE want to extend the element for every iteration
like:
elements.each(function(element) {
element.hide() // fails in IE since it isn't extendent
$(element).hide() // works in ie.
});
And since Element.hide will do the $(element) for you, it should be
safer but .invoke will just call the method on that object without
extending it first.
Martin
On 12/3/06, Mislav <[EMAIL PROTECTED]> wrote:
>
> On Dec 3, 12:18 am, "Andrew Kaspick" <[EMAIL PROTECTED]> wrote:
> > You have to use an 'each' on your elements now. Something like
> > elements.each(Element.hide).
>
> Actually it's
> elements.invoke('hide')
>
> -M
>
>
> >
>
--
burnfield.com/martin
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---