I'm running into problems when I'm trying to call a function on an object from within that same object. I've read that calling a function on an object from within that object is possible here, so I think it must be my use of prototype
that's causing the issue. Here's an example:
function Foo() {
this.DoStuff();
}
Foo.prototype.DoStuff = function() {
alert("I'm frantically doing stuff!");
}
That code (or something very similar) just doesn't want to work. Any ideas why?