quote:
Originally posted by whiz
I'm assuming it's because, for objects, foo.bar is the same as foo["bar"]. Seems calling []["foo"], where foo is an array method, always seems to do this.
Could you perhaps add a prefix or something to x as a workaround?
I'll try shortly. If that does fix it, it's a bit sloppy, but I want it working. For the purposes of the script, it doesn't really cause any errors, Just don't want all that in the debug =/
EDIT: Nope can't seem to do that without breaking the script. I need the value related to x[0] from y
quote:
Originally posted by Eljay
How was y defined? for..in loops The in keyword is for Objects, not Arrays.
Arrays are Objects