I pulled out an old javascript object I created a while back a few days ago and I’ve been developing in Firefox ever since. Then I decided to test how it worked in other browsers and…..it works in none of them! Not chrome, not IE(7/8), not opera, and not safari.
It’s built like this:
[code]
function myCalendar() {
//constructor function
}
myDiv.prototype.newMethod = function() {
//add another method to objects created through myDiv
}
//do some stuff onload
myObj = new myCalendar();
myObj.newMethod();
Every browser (except firefox) breaks at this line:
[code]
myObj.newMethod();
It’s really as simple as that….what’s on the go? Do any JS experts out there know anything about this?