Reputation: 20966
deprecated: bad example
Is it feasible to get execution context (object reference) which method is applied to not passing additional reference of 'someObject' as 'someMethod' argument in last line of code?
var someObject = {
prop1 : 'value1'
};
var someMethod = function() {
// TODO: how to get prop1 value from here?
};
someMethod.call(someObject);
Thanks.
Upvotes: 0
Views: 82