Jarek Foksa wrote:
> > Well, you could always just use Array.prototype.
>
> I'm sorry, I have formulated my question incorrectly. The question
> should rather be: How do I modify Array.prototype.b.c() in the code
> below so that "this" would return ['one', 'two', 'three']:

When a function is called, its this keyword is set and you can't
change it. You can set it from the call though using call and apply,
or in environments that support ECMAScript ed 5, you can use *bind()*.


--
Rob

-- 
To view archived discussions from the original JSMentors Mailman list: 
http://www.mail-archive.com/jsmentors@jsmentors.com/

To search via a non-Google archive, visit here: 
http://www.mail-archive.com/jsmentors@googlegroups.com/

To unsubscribe from this group, send email to
jsmentors+unsubscr...@googlegroups.com

Reply via email to