mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 10:34:39 +08:00
TESTS: Reset the preload store for testing
This commit is contained in:
@ -77,6 +77,14 @@ window.PreloadStore = {
|
||||
**/
|
||||
remove: function(key) {
|
||||
if (this.data[key]) delete this.data[key];
|
||||
},
|
||||
|
||||
/**
|
||||
Resets the contents of the store. Used in testing.
|
||||
|
||||
**/
|
||||
reset: function() {
|
||||
this.data = {};
|
||||
}
|
||||
|
||||
};
|
||||
|
Reference in New Issue
Block a user