I just finished reading "High Performance JavaScript" and now I'm paying more attention to scope. So my question is: within an object method, is there any benefit to declaring a local variable referencing 'this'? Is that just redundant? What about a local variable referencing a property of 'this' that is itself an object? Like var myLocal = this.someProperty so that you can refer to myLocal.x, myLocal.y, etc.
Thanks! --Tom -- 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]
