Closed GoogleCodeExporter closed 9 years ago
Hi Alex,
The way DOMAssistant is implemented, in IE specifically, is extending the native
Array object for performance and scalability reasons. This is because IE has a
flawed
model when creating independent arrays inheriting from the native Array object.
We have been looking at other ways to approach this, but each solution does
affect
performance in a negative way. If we find something good, we will implement it
in the
next release.
When it comes to your code example, it is always best practice to check type in
a
for...in loop. Doing this, you could then easily distinguish the type and get
the
desired values.
You can read more about that in "for in Intrigue"
(http://yuiblog.com/blog/2006/09/26/for-in-intrigue/)
Best regards,
Robert
Original comment by robny...@gmail.com
on 25 Mar 2008 at 3:45
Hi Robert,
Thanks for your help, I'll make the for...in loop more robust.
Enjoying DOMAssistant - 80 lines of code just went to 3!
Best regards,
Alex
Original comment by alexx...@gmail.com
on 25 Mar 2008 at 8:49
That sounds great! I'm happy to hear that it helps out in your tasks! :-)
Best regards,
Robert
Original comment by robny...@gmail.com
on 25 Mar 2008 at 9:41
Original issue reported on code.google.com by
alexx...@gmail.com
on 25 Mar 2008 at 5:30