On 12/8/05, Nagarjuna Venna <[EMAIL PROTECTED]> wrote: > 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?
The value you're getting is the new Array.prototype.map method: http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Objects:Array:map > 2. How should I use associative arrays if unexpected values like this > are returned? Don't use arrays as associative arrays. They didn't work before, either. For example "length" would have shown up in 1.0.7. Use objects as associative arrays, that's what they're there for. var assoc = new Object(); alert(assoc['map']); // undefined - a _______________________________________________ Project_owners mailing list [email protected] http://mozdev.org/mailman/listinfo/project_owners
