Hi there,
Can anyone help? I have the following object in javascript... from what i understand each "INSTANCE" of my calendar will have its own variables.
My question is i need to insert a method/function name called "InitilizeHolidays" this needs to add to an array but the details need to be same in all instances ... I was thinking about some kind of STATIC method call if this is possible ..
Of course if i insert this on "prototype" its going to be specific to each instance and i need for it to effect all instances.
Is it possible to initilise variables that effect ALL instances and ONLY specific instances? Where must i insert these?
Any help really appreciated
function Calendar() {
// I presume variables set here are available to "ALL" instances
}
Calendar.prototype = {
constructor: Calendar,
getDateTest: function() {
return "date test";
},
getDateTest2: function() {
return "date test";
}
};