diff --git a/src/engine/runtime.js b/src/engine/runtime.js index 690ef4a1c..d2eca46ae 100644 --- a/src/engine/runtime.js +++ b/src/engine/runtime.js @@ -1540,6 +1540,16 @@ class Runtime extends EventEmitter { this.targets.map(this.disposeTarget, this); this._monitorState = OrderedMap({}); // @todo clear out extensions? turboMode? etc. + + // *********** Cloud ******************* + + // If the runtime currently has cloud data, + // emit a has cloud data update event resetting + // it to false + if (this.hasCloudData()) { + this.emit(Runtime.HAS_CLOUD_DATA_UPDATE, false); + } + this.ioDevices.cloud.clear(); // Reset runtime cloud data info @@ -1548,7 +1558,6 @@ class Runtime extends EventEmitter { this.canAddCloudVariable = newCloudDataManager.canAddCloudVariable; this.addCloudVariable = this._initializeAddCloudVariable(newCloudDataManager); this.removeCloudVariable = this._initializeRemoveCloudVariable(newCloudDataManager); - } /**