On 06/12/05, Aaron Boodman <[EMAIL PROTECTED]> wrote: > > You just need to remember that "prototype" is for constructors. The > value of the prototype goes into __proto__ in the objects that the > constructor creates. __proto__ is the actual lookup chain, not > prototype. > > So when you do a.b, b is checked for on a, then a.__proto__.b, then > a.__proto__.__proto__.b, and so on. Prototype has nothing to do with > this, except for the fact that in the ECMA spec, it is the only way to > set __proto__.
Thanks, that explanation provided the "aha" I was looking for. A > _______________________________________________ > 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
