I'm kind of a noobie in javascript, and when i try to use prototypes to extend my object, i get the following error code :
Object function ProcessManager() {...} has no method 'startBrowsing'
Here is my code. I execute this code in nodejs.
The code
function ProcessManager(){
this.browser = new Browser();
this.salePagesToVisit = [];
this.salePagesCurrent = [];
this.salePagesDone = [];
this.categoryPagesToVisit = [];
this.categoryPagesCurrent = [];
this.categoryPagesDone = [];
this.listPagesToVisit = [];
this.listPagesCurrent = [];
this.listPagesDone = [];
}
ProcessManager.prototype.startBrowsing = function () {
winston.log('verbose', 'Starting scrapping Bazarchic');
}
var processManager = new ProcessManager();
ProcessManager.startBrowsing();