[<<][webdev][>>][..]
Mon Jun 19 18:48:08 EDT 2017

this

a = { foo: function() { return this; } }

a.foo(); -> a

var b = a.foo;
b(); -> global context


It seems that the function is not bound to the object.  It is just
associated to an object at the time of the call.




[Reply][About]
[<<][webdev][>>][..]