diff options
Diffstat (limited to 'js/cache.js')
-rw-r--r-- | js/cache.js | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/js/cache.js b/js/cache.js new file mode 100644 index 000000000..08353bae8 --- /dev/null +++ b/js/cache.js @@ -0,0 +1,34 @@ +/** +* ownCloud - News app +* +* @author Bernhard Posselt +* Copyright (c) 2012 - Bernhard Posselt <nukeawhale@gmail.com> +* +* This file is licensed under the Affero General Public License version 3 or later. +* See the COPYING-README file +* +*/ + +/** + * The cache is used to cache items and tell the program which items have been + * loaded + */ + + (function(exports) { + "use strict"; + + var Cache = function(){ + this.reset(); + }; + + + + Cache.prototype.reset = function(){ + this.items = []; + }; + + exports.Cache = Cache; + + }(typeof exports === "undefined" ? (this.moduleName = {}): exports)); + + |