Hi Nagarjuna,
In fact, map is now a property of the Array object (see
https://bugzilla.mozilla.org/show_bug.cgi?id=290592).
Just prepend the key with a " " (or an underscore might be as save!?) and
you can use the object as an associative array.
You might want to put this into some function if you need it all over your
code though.
-Thomas.


--- Nagarjuna Venna <[EMAIL PROTECTED]> schrieb:

> 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
> 



        

        
                
___________________________________________________________ 
Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: 
http://mail.yahoo.de
_______________________________________________
Project_owners mailing list
[email protected]
http://mozdev.org/mailman/listinfo/project_owners

Reply via email to