rauschma wrote:
var c1 = Object.create(C);
obj.one(); // 'A.foo'
That would be c1.one(), right?
Yes, sorry edited post twice.
rauschma wrote:
|here| === C and thus the search for super.one starts in B and finds
A.one.
B.two = function () {
this.three();
};
B.three
On Mon, Jun 20, 2011 at 1:27 PM, Axel Rauschmayer a...@rauschma.de wrote:
Terminology (created by me, but I think it explains well what is going on):
- |this| points to the object where property lookup starts. It always points
to the beginning of the prototype chain.
- |here| points to the
2 matches
Mail list logo