Let's say I have an Object View original defined in one file View.js :
var View = (function () {
function View() {
}
View.prototype.SubFunc = function() {
}
return View;
})();
Now I want to be able to split in 2 files :
View.js
var View = (function () {
function View() {
}
return View;
})();
and SubFunc.js
View.prototype.SubFunc = function() {
}
Why it doesn't seem to work anymore ? During execution I get this error :
view.SubFunc is not a function