diff options
author | Andrew Dolgov <[email protected]> | 2018-12-08 09:32:14 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2018-12-08 09:32:14 +0300 |
commit | bd66a9ef28ddf25e014e852e5ee770868f619aaa (patch) | |
tree | 1e101b88ff13c1aaeaaa743a1c582a828327a90c /js/ArticleCache.js | |
parent | 41e967136f6391ff6d7a7c20af47dc434d853099 (diff) |
render article on the client using headlines data
Diffstat (limited to 'js/ArticleCache.js')
-rw-r--r-- | js/ArticleCache.js | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/js/ArticleCache.js b/js/ArticleCache.js deleted file mode 100644 index ce34d00d9..000000000 --- a/js/ArticleCache.js +++ /dev/null @@ -1,29 +0,0 @@ -'use strict' -/* global __, ngettext */ -define(["dojo/_base/declare"], function (declare) { - ArticleCache = { - has_storage: 'sessionStorage' in window && window['sessionStorage'] !== null, - set: function (id, obj) { - if (this.has_storage) - try { - sessionStorage["article:" + id] = obj; - } catch (e) { - sessionStorage.clear(); - } - }, - get: function (id) { - if (this.has_storage) - return sessionStorage["article:" + id]; - }, - clear: function () { - if (this.has_storage) - sessionStorage.clear(); - }, - del: function (id) { - if (this.has_storage) - sessionStorage.removeItem("article:" + id); - }, - } - - return ArticleCache; -}); |