I'm a beginner w/ Javascript. I'm looking at the following code that someone else wrote:
function MeetingPage()
{
MeetingPage.colors = new Object();
}
...
var meeting = new MeetingPage();
From what I've seen, I believe that the MeetingPage function creates an object that later someone holds onto in meeting. What is the MeetingPage.colors? Is the MeetingPage prefix some kind of global? Is it a "this" pointer of some kind?
Any suggestions would be appreciated.
thisthere, I'm not sure if that will work the same (or even if it intends to).MeetingPageas a constructor or function. Also the colors property won't even be linked to an instance ofMeetingPage.this.instead ofMeetingPage.this.colors = {};instead.