Is there a reliable way of getting the instance of a JavaScript object?
For example, relying on the fake \'obj.getInstance()\' function.
obj.getInstance()
var
You can do :
get(){ // Method for ( var nameOfVariable in window ) if (eval(nameOfVariable +"=== this")) return nameOfVariable;// true if variable name is instace of this return ""; }