TESTS: Reset the preload store for testing

This commit is contained in:
Robin Ward
2014-07-31 13:24:07 -04:00
parent c3e1dd4707
commit c5b5db48cf
6 changed files with 31 additions and 15 deletions

View File

@ -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 = {};
}
};