It previously had some performance issues, but now that should not be
noticeable.



On 12/1/08, laurin1 <[EMAIL PROTECTED]> wrote:
>
> I was under the impression that $$ was not very efficient, or do you
> mean there is another way that I am overlooking?
>
> On Dec 1, 3:25 pm, Jarkko Laine <[EMAIL PROTECTED]> wrote:
>> On 1.12.2008, at 23.14, laurin1 wrote:
>>
>>
>>
>> > var $aCSS = document.getElementsByTagName('style');
>>
>> > $aCSS.each(function($sEle){
>>
>> >    alert('test');
>>
>> > });
>>
>> > I can make this work with $$, and if I use
>> > document.getElementsByTagName('style')[0], I can access each one
>> > individually. So why can't I use each()?
>>
>> Because HTMLCollection (which getElementsByTagName returns) doesn't
>> mix in Enumerable, where each comes from.
>>
>> The question is, why would you use getElementsByTagName?
>>
>> //jarkko
>>
>> --
>> Jarkko Lainehttp://jlaine.nethttp://dotherightthing.comhttp://odesign.fi
>>
>> Check out my latest book, Unobtrusive Prototype, fresh off the
>> Peepcode oven:http://peepcode.com/products/unobtrusive-prototype-js
> >
>


-- 
Jerod Venema
Frozen Mountain Software
http://www.frozenmountain.com/
919-368-5105

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to