Given:
class = function class(...) {
var foo = function(...) {...};
bar: function(...) {...};
baz: function(...) {...};
}
In another file I'm overriding class.bar
via:
class.bar = function(...) {
myStuff();
this.foo(...);
};
But this gives me the error: this.foo is not a function