inhabit-module-base
Advanced tools
Comparing version 1.3.5 to 1.3.6
@@ -73,3 +73,3 @@ "use strict"; | ||
this.searchEngineService = dependencies.searchEngineService; | ||
this.events = dependencies.events || InhabitModuleEvents; | ||
this.events = dependencies.events || new InhabitModuleEvents(); | ||
this.resourcesRoot = dependencies.resourcesRoot || "build/resources"; | ||
@@ -76,0 +76,0 @@ return this; |
{ | ||
"name": "inhabit-module-base", | ||
"version": "1.3.5", | ||
"version": "1.3.6", | ||
"description": "A Base Module class for InHabit.", | ||
@@ -5,0 +5,0 @@ "main": "build/InhabitModuleBase.js", |
@@ -73,3 +73,3 @@ "use strict"; | ||
this.searchEngineService = dependencies.searchEngineService; | ||
this.events = dependencies.events || InhabitModuleEvents; | ||
this.events = dependencies.events || new InhabitModuleEvents(); | ||
this.resourcesRoot = dependencies.resourcesRoot || "build/resources"; | ||
@@ -76,0 +76,0 @@ return this; |
@@ -0,5 +1,10 @@ | ||
"use strict"; | ||
/** | ||
* Created by WMTS on 10/24/2016. | ||
*/ | ||
module.exsports = { | ||
function InhabitModuleEvents() { | ||
} | ||
InhabitModuleEvents.prototype = | ||
{ | ||
/** | ||
@@ -9,3 +14,3 @@ * Fire this event when interactive module loaded all required resources and ready to be displayed to user | ||
*/ | ||
ready: this.interfaceMethod, | ||
ready: undefined.interfaceMethod, | ||
/** | ||
@@ -15,20 +20,21 @@ * In case of any error happens inside interactive, fire this event, this will trigger sequence that will hide current | ||
*/ | ||
error: this.interfaceMethod, | ||
error: undefined.interfaceMethod, | ||
/** | ||
* Fire this event when user started his interaction with you module. This event should be triggered once per lifetime | ||
*/ | ||
interactionStart:this.interfaceMethod, | ||
interactionStart: undefined.interfaceMethod, | ||
/** | ||
* Trigger this event when user starts new sequence in your module. | ||
*/ | ||
cycleStart:this.interfaceMethod, | ||
cycleStart: undefined.interfaceMethod, | ||
/** | ||
* Trigger this event when users completes cycle and about to start new one | ||
*/ | ||
cycleEnd:this.interfaceMethod, | ||
cycleEnd: undefined.interfaceMethod, | ||
interfaceMethod: function () { | ||
interfaceMethod: function interfaceMethod() { | ||
console.log("this is interface method would be implemented later through the core"); | ||
} | ||
}; | ||
}; | ||
module.exports = InhabitModuleEvents; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
37500
256