arkhamjs
Advanced tools
Comparing version 3.3.0 to 3.3.1
@@ -43,2 +43,3 @@ /// <reference types="node" /> | ||
export declare class FluxFramework extends EventEmitter { | ||
isInit: boolean; | ||
pluginTypes: string[]; | ||
@@ -45,0 +46,0 @@ private state; |
@@ -73,2 +73,3 @@ "use strict"; | ||
var _this = _super.call(this) || this; | ||
_this.isInit = false; | ||
_this.pluginTypes = ['preDispatch', 'postDispatch']; | ||
@@ -256,2 +257,3 @@ _this.state = {}; | ||
} | ||
this.isInit = true; | ||
this.emit(ArkhamConstants_1.ArkhamConstants.INIT); | ||
@@ -265,2 +267,5 @@ return [2]; | ||
this.on(ArkhamConstants_1.ArkhamConstants.INIT, listener); | ||
if (this.isInit) { | ||
listener(); | ||
} | ||
}; | ||
@@ -267,0 +272,0 @@ FluxFramework.prototype.offInit = function (listener) { |
{ | ||
"name": "arkhamjs", | ||
"version": "3.3.0", | ||
"version": "3.3.1", | ||
"description": "Javascript Flux Library", | ||
@@ -74,2 +74,2 @@ "license": "MIT", | ||
} | ||
} | ||
} |
@@ -60,2 +60,3 @@ /** | ||
export class FluxFramework extends EventEmitter { | ||
isInit: boolean = false; | ||
// Public properties | ||
@@ -310,2 +311,3 @@ pluginTypes: string[] = ['preDispatch', 'postDispatch']; | ||
this.isInit = true; | ||
this.emit(ArkhamConstants.INIT); | ||
@@ -321,2 +323,6 @@ } | ||
this.on(ArkhamConstants.INIT, listener); | ||
if(this.isInit) { | ||
listener(); | ||
} | ||
} | ||
@@ -323,0 +329,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
12567919
244
54403
0