diff --git a/src/engine/runtime.js b/src/engine/runtime.js index 1f720c8b44..609c473f8a 100644 --- a/src/engine/runtime.js +++ b/src/engine/runtime.js @@ -599,6 +599,17 @@ class Runtime extends EventEmitter { volume: 1 }; + /** + * A temporary storage area that gets cleared when the project starts or stops + */ + this.temporaryStorage = {}; + this.on(Runtime.PROJECT_START, () => { + this.temporaryStorage = {}; + }); + this.on(Runtime.PROJECT_STOP_ALL, () => { + this.temporaryStorage = {}; + }); + /** * Export some internal values for extensions. */