Skip to content

Commit

Permalink
Simple temporary storage
Browse files Browse the repository at this point in the history
  • Loading branch information
yuri-kiss authored Oct 10, 2024
1 parent b40135d commit 4655ee1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/engine/runtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down

0 comments on commit 4655ee1

Please sign in to comment.