I have a slideshow class looking like this:
//Our slideshow class
function Slideshow(moduleId) {
this.moduleId = moduleId;
this.activeSlide = null;
this.slides = new Array();
this.newRound();
}
and I instantiate it telling it what module it is on like this
self.modules[moduleId].slideshow = new Slideshow(moduleId);
Now as you can see, it is already "mounted" on a module named by the moduleId, so my question is: Is this object (the instance of Slideshow) aware of it's parent?
Can I find out the moduleId by doing something like
parent.name
and get the moduleId that way?