There's no magic fix. 'this' will refer to the base reference of the method 
invocation (in this case the thing before the dot). Best you can do is:

Array.prototype.b.c = function() { console.log(Array.prototype); } 
myArray.b.c(); 

or

Array.prototype.b.c = function() { console.log(this); } 
myArray.b.c.call(Array.prototype); 

-- 
To view archived discussions from the original JSMentors Mailman list: 
http://www.mail-archive.com/[email protected]/

To search via a non-Google archive, visit here: 
http://www.mail-archive.com/[email protected]/

To unsubscribe from this group, send email to
[email protected]

Reply via email to