Skip to content
Browse files

removed global shared cache Moz JS module

Since the background window never reloads when a new browser window
opens, we can use the background window (BACKSTAGE) to host the module
cache and restart functionality.
  • Loading branch information...
1 parent 0869161 commit 9377203c98e316f313c59e08d428e4f4b525077a Kristoffer Walker committed
Showing with 0 additions and 18 deletions.
  1. +0 −18 tree/kixxsys/cache.js
View
18 tree/kixxsys/cache.js
@@ -1,18 +0,0 @@
-var CACHE = (function createSharedCache() {
- var this_cache = {},
- pub = {};
-
- pub.create = function create(aKey) {
- if (this_cache.hasOwnProperty(aKey)) {
- throw ("Shared cache key '"+ aKey +"' already exists.");
- }
- this_cache[aKey] = {};
- return this_cache[aKey];
- }
-
- pub.destroy = function destroy(aKey) {
- delete this_cache[aKey];
- }
-
- return pub;
- }());

0 comments on commit 9377203

Please sign in to comment.
Something went wrong with that request. Please try again.