From b3edbdd0c2e54c22acbbd61005d42ecd91b76a48 Mon Sep 17 00:00:00 2001 From: benweet Date: Sat, 15 Jun 2013 02:11:13 +0100 Subject: [PATCH] Prepare deployment --- cache.manifest | 2 +- js/main-min.js | 5 ++--- js/utils.js | 6 +++--- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/cache.manifest b/cache.manifest index cdf12b11..073908ec 100644 --- a/cache.manifest +++ b/cache.manifest @@ -1,5 +1,5 @@ CACHE MANIFEST -# Fri Jun 14 00:26:11 GMT 2013 +# Sat Jun 15 02:11:13 GMT 2013 CACHE: index.html diff --git a/js/main-min.js b/js/main-min.js index 948d1a8d..c362ff99 100644 --- a/js/main-min.js +++ b/js/main-min.js @@ -4216,9 +4216,8 @@ define("libs/FileSaver", function() {}), define("utils", [ "jquery", "underscore }, o.updateCurrentTime = function() { o.currentTime = new Date().getTime(); }, o.updateCurrentTime(), o.storeAttributes = function(e) { - var n = e.syncIndex || e.publishIndex; - e = t.omit(e, "syncIndex", "publishIndex"), e.provider = e.provider.providerId, - localStorage[n] = JSON.stringify(e); + var n = e.syncIndex || e.publishIndex, i = t.omit(e, "syncIndex", "publishIndex", "provider"); + i.provider = e.provider.providerId, localStorage[n] = JSON.stringify(i); }, o.retrieveIndexArray = function(e) { try { return t.compact(localStorage[e].split(";")); diff --git a/js/utils.js b/js/utils.js index 5d7483f4..2901403d 100644 --- a/js/utils.js +++ b/js/utils.js @@ -200,10 +200,10 @@ define([ utils.storeAttributes = function(attributes) { var storeIndex = attributes.syncIndex || attributes.publishIndex; // Don't store sync/publish index - attributes = _.omit(attributes, "syncIndex", "publishIndex"); + var storedAttributes = _.omit(attributes, "syncIndex", "publishIndex", "provider"); // Store providerId instead of provider - attributes.provider = attributes.provider.providerId; - localStorage[storeIndex] = JSON.stringify(attributes); + storedAttributes.provider = attributes.provider.providerId; + localStorage[storeIndex] = JSON.stringify(storedAttributes); }; // Retrieve/parse an index array from localStorage