diff --git a/desirae.js b/desirae.js index c64dd60..18d6b66 100644 --- a/desirae.js +++ b/desirae.js @@ -223,10 +223,6 @@ } } - console.log(''); - console.log(''); - console.info('getting config, data, caches...'); - function clone(obj) { return JSON.parse(JSON.stringify(obj)); } @@ -238,7 +234,7 @@ - Desi.toLocaleDate = function (d) { + Desi.toDesiDate = Desi.toLocaleDate = function (d) { return d.getFullYear() + '-' + pad(d.getMonth() + 1) + '-' + pad(d.getDate()) + ' ' + (d.getHours() % 12) + ':' + pad(d.getMinutes()) + ' ' + (d.getHours() - 12 >= 0 ? 'pm' : 'am') @@ -247,6 +243,10 @@ // read config and such Desi.init = function (desi, env) { + console.log(''); + console.log(''); + console.info('getting config, data, caches...'); + if (!exports.window) { // TODO pull state out of this later Desi.realFsapi.create(Desi, env); diff --git a/lib/utils.js b/lib/utils.js index 0f0c6e8..6371efc 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -5,7 +5,6 @@ ; function escapeRegExp(str) { - console.log('hello', str); return str.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&"); }