This is a conceptual question I wasn't skillful to solve.
The whole question can be reduced to this line:
OurConstructor.prototype = {
a: function(){},
b: function(){ a(); }
};
Can we call a()
inside b()
, both being on the prototype?
Edit: Just for other people, I was calling this.a()
with the wrong name, but using b: function(){ this.a(); }
should work just fine.