Since this is nearly always the pattern that's followed in the class pattern, I nearly always alias `this`, if needed, to the lowercase instance name or some short identifier that semantically maps to "an instance of the class". It gets you instantly out of both the problem of "I already used `that` as an identifier, now what?" as well as providing some nice context to what you're working on if you happen to be scrolled beyond the function/constructor name.
function SomeClass(arg1, secretArg) {
var someClass = this; // or `var sc = this`, more often these days
// Hopefully do something more interesting than this...
someClass.arg1 = arg1;
someClass.method = function(foo) {
someClass.bar = foo;
// Do something with the "private" param via closure.
secretArg.count++;
};
}
Even if lambda expressions do fix the issue of "which that is that" it doesn't provide me any helpful context for when I'm deep in coding or reading modes.