On Tue, Oct 14, 2008 at 11:05 AM, John J Barton
<[EMAIL PROTECTED]> wrote:
> A more subtle problem has to do with objects in a prototype chain.
> Whenever Firebug has a object as a lookup table, it tests
> "obj.hasOwnProperty(name)" to do the look up. This helps insure that
> the value you put in the table under 'name' is the one that comes back
> out.  See for example, http://javascript.crockford.com/code.html.

You can create a dictionary that doesn't delegate to the usual
Object.prototype stuff using this old mechanism:

var dict = { __proto__: null };

That should keep you from seeing toString or hasOwnProperty or other
Object.prototype paraphernalia.

Mike

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Firebug" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/firebug?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to