It’s sometimes very useful to include this in a JavaScript class in order to reference private members/instance variables in contexts where this
no longer refers to an instance of the class:
var self = this;
It’s sometimes very useful to include this in a JavaScript class in order to reference private members/instance variables in contexts where this
no longer refers to an instance of the class:
var self = this;