cleanup logging

This commit is contained in:
AJ ONeal 2015-01-15 16:48:16 -07:00
parent 551f45d9c2
commit 427b729b86
2 changed files with 5 additions and 6 deletions

View File

@ -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);

View File

@ -5,7 +5,6 @@
;
function escapeRegExp(str) {
console.log('hello', str);
return str.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
}