Menu
Hey there, can anyone point me towards any information on identifying what object called a function? For example, say you have this object:
[code]var myObject = {
onLoad: function(){
masterObject.callMe();
}
};
var masterObject = {
callMe: function(){
window.alert(‘I was called by the object ——–‘);
}
};
How could I, for example, get that to display “I was called by the object myObject” if myObject.onLoad() was called?
I don’t really need to know the name of the object… all I need is a reference to the object.
Thanks in advance!
-Matt