I've experienced the same problem. I had keys in an associative array such as "pop", "push" etc. somehow firefox thought they were functions as opposed to just strings. I never did figure out the solution other than not having keys which have the same name as Array methods.

-joe


Nagarjuna Venna wrote:
If I write the following code in the location bar of FF 1.5, I'm
getting what I think is a strange result:

javascript:var a = new Array(); alert(a['map']);

The return value is the function object for map(). In 1.0.7, it used
to return undefined.

I'm stumped by the following:

1. I'm assuming the value is coming from the global object - how is
'a' related to the global object other than being a property of the
global object?
2. How should I use associative arrays if unexpected values like this
are returned?

Thanks,
nagarjuna
_______________________________________________
Project_owners mailing list
[email protected]
http://mozdev.org/mailman/listinfo/project_owners
_______________________________________________
Project_owners mailing list
[email protected]
http://mozdev.org/mailman/listinfo/project_owners

Reply via email to