Prepare deployment

This commit is contained in:
benweet 2013-06-15 02:11:13 +01:00
parent 11fc37021d
commit b3edbdd0c2
3 changed files with 6 additions and 7 deletions

View File

@ -1,5 +1,5 @@
CACHE MANIFEST CACHE MANIFEST
# Fri Jun 14 00:26:11 GMT 2013 # Sat Jun 15 02:11:13 GMT 2013
CACHE: CACHE:
index.html index.html

5
js/main-min.js vendored
View File

@ -4216,9 +4216,8 @@ define("libs/FileSaver", function() {}), define("utils", [ "jquery", "underscore
}, o.updateCurrentTime = function() { }, o.updateCurrentTime = function() {
o.currentTime = new Date().getTime(); o.currentTime = new Date().getTime();
}, o.updateCurrentTime(), o.storeAttributes = function(e) { }, o.updateCurrentTime(), o.storeAttributes = function(e) {
var n = e.syncIndex || e.publishIndex; var n = e.syncIndex || e.publishIndex, i = t.omit(e, "syncIndex", "publishIndex", "provider");
e = t.omit(e, "syncIndex", "publishIndex"), e.provider = e.provider.providerId, i.provider = e.provider.providerId, localStorage[n] = JSON.stringify(i);
localStorage[n] = JSON.stringify(e);
}, o.retrieveIndexArray = function(e) { }, o.retrieveIndexArray = function(e) {
try { try {
return t.compact(localStorage[e].split(";")); return t.compact(localStorage[e].split(";"));

View File

@ -200,10 +200,10 @@ define([
utils.storeAttributes = function(attributes) { utils.storeAttributes = function(attributes) {
var storeIndex = attributes.syncIndex || attributes.publishIndex; var storeIndex = attributes.syncIndex || attributes.publishIndex;
// Don't store sync/publish index // Don't store sync/publish index
attributes = _.omit(attributes, "syncIndex", "publishIndex"); var storedAttributes = _.omit(attributes, "syncIndex", "publishIndex", "provider");
// Store providerId instead of provider // Store providerId instead of provider
attributes.provider = attributes.provider.providerId; storedAttributes.provider = attributes.provider.providerId;
localStorage[storeIndex] = JSON.stringify(attributes); localStorage[storeIndex] = JSON.stringify(storedAttributes);
}; };
// Retrieve/parse an index array from localStorage // Retrieve/parse an index array from localStorage