I want to find a way to get the name "objName" from the function "fn" defined inside the "objName".
See the comments to see how it should work.
this.objName = {
fn : function () {console.log("????");}
}
this.objName.fn() // objName
Obviously, the "fn" function will not called in this way, but from a JavaScript Button action event. (the button is defined inside this.objName = { .... } )