From e827ec4f0c54fa6b0efe4d5da955358f8667f3ea Mon Sep 17 00:00:00 2001 From: atomizer Date: Sun, 18 Jan 2015 05:19:36 +0300 Subject: [PATCH] fix cache writing --- lib/mule.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mule.js b/lib/mule.js index 770b5be..a6b6a41 100644 --- a/lib/mule.js +++ b/lib/mule.js @@ -290,7 +290,7 @@ Mule.prototype.parse = function(data) { delete d.News; // write cache try { - localStorage[this.cacheId] = JSON.stringify(data); + localStorage[this.cache_id()] = JSON.stringify(data); } catch(e) {} this.updated = new Date(data.query.created);