Say I have an object called FieldEdit
. I define the function constructor for this object, instantiate it via. var obj = new FieldEdit()
, and define its methods by FieldEdit.prototype.<method name> = function() { ... }
.
Under what situations would calling this object's methods within the objects' other methods (via. this.<method name>();
) fail?
Note that I want to avoid posting a code sample for this if I can since I think this is simply a problem with my understanding of Javascript more than anything, really. I'm pretty sure my code is sound, to the best of my knowledge (and it's my knowledge that's the question here, besides).