|
|
@ -14,14 +14,11 @@ var executionContext = remixLib.execution.executionContext |
|
|
|
|
|
|
|
|
|
|
|
function UniversalDApp (globalRegistry) { |
|
|
|
function UniversalDApp (globalRegistry) { |
|
|
|
this.event = new EventManager() |
|
|
|
this.event = new EventManager() |
|
|
|
var self = this |
|
|
|
this.data = {} |
|
|
|
self.data = {} |
|
|
|
this._deps = { |
|
|
|
self._components = {} |
|
|
|
config: globalRegistry.get('config').api, |
|
|
|
self._components.registry = globalRegistry |
|
|
|
compiler: globalRegistry.get('compiler').api, |
|
|
|
self._deps = { |
|
|
|
logCallback: globalRegistry.get('logCallback').api |
|
|
|
config: self._components.registry.get('config').api, |
|
|
|
|
|
|
|
compilersartefacts: self._components.registry.get('compilersartefacts').api, |
|
|
|
|
|
|
|
logCallback: self._components.registry.get('logCallback').api |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
executionContext.event.register('contextChanged', this, function (context) { |
|
|
|
executionContext.event.register('contextChanged', this, function (context) { |
|
|
|
self.resetEnvironment() |
|
|
|
self.resetEnvironment() |
|
|
|