On Oct 21, 5:48 pm, Rahul <[email protected]> wrote:
> hi ,
> i was trying function scoping ,
> this is the code below,
>
> alice = { name : "ALICE" }
>
> Function.prototype.bind = function(scope){

The object assigned to a function's *this* keyword using apply has
nothing to do with scope.

Scope relates to variable resolution and proceeds along a chain of
variable/activation objects (the scope chain), the object referenced
by a function's this keyword is used for property resolution (which
proceeds along the internal Prototype chain).

Perhaps the variable should be called thisObj or similar.

--
Rob

-- 
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