BXForm.prototype.btnClick = function() {
...
}
BXForm.prototype.init = function() {
...
}
var BXForm = Object.create(Object);
BXForm.prototype.btnClick = function() {
console.log('btnClick called');
}
BXForm.prototype.init = function() {
this.btnClick();
console.log(this, 'init called');
}
BXForm.init();