Add async callback to module when loaded

This commit is contained in:
Chris van Marle
2016-12-07 17:19:05 +01:00
parent 98855de71f
commit 3947deb7bd
3 changed files with 54 additions and 20 deletions

View File

@@ -14,6 +14,11 @@ NodeHelper = Class.extend({
console.log("Initializing new module helper ...");
},
loaded: function(callback) {
console.log("Module helper loaded: " + this.name);
callback();
},
start: function() {
console.log("Staring module helper: " + this.name);
},