TagSpaces is an offline, open source, document manager with tagging support
js styling
uggrock12307b51c4a4
diff --git a/data/cordova/cordova.api.js b/data/cordova/cordova.api.jsindex 567e6b301..f2cbeeb0d 100644--- a/data/cordova/cordova.api.js+++ b/data/cordova/cordova.api.js@@ -364,7 +364,7 @@ define(function(require, exports, module) {"lmdt": ""});} else if (entry.isFile) {- if(lite) {+ if (lite) {anotatedDirList.push({"name": entry.name,"path": entry.fullPath,@@ -392,7 +392,7 @@ define(function(require, exports, module) {function(err) {onReject("Error reading entry " + fileEntry.name);});- }+ }}); // jshint ignore:linefileWorkers.push(filePromise);}@@ -405,7 +405,7 @@ define(function(require, exports, module) {});console.timeEnd("listDirectoryPromise");resolve(anotatedDirList);- }, function(err){+ }, function(err) {console.warn("At least one file worker failed for " + path + "err " + JSON.stringify(err));console.timeEnd("listDirectoryPromise");resolve(anotatedDirList); // returning results even if any promise fails@@ -580,7 +580,7 @@ define(function(require, exports, module) {function saveBinaryFilePromise(filePath, content, overWrite) {console.log("Saveing binary file: " + filePath);var dataView = new Int8Array(content);- return saveFilePromise(filePath, content, overWrite);+ return saveFilePromise(filePath, dataView, overWrite);}diff --git a/data/js/search.js b/data/js/search.jsindex 8eb416a07..41ad1f1ae 100644--- a/data/js/search.js+++ b/data/js/search.js@@ -154,7 +154,7 @@ define(function(require, exports, module) {var searchData = function(data, query) {//todo make a switch in gui for content search- var searchInContent = (isChrome || isFirefox)?false:true+ var searchInContent = (isChrome || isFirefox) ? false : true;var queryObj = prepareQuery(query);var searchResults = [];diff --git a/data/js/utils.js b/data/js/utils.jsindex f0239d7b9..a89366c35 100644--- a/data/js/utils.js+++ b/data/js/utils.js@@ -114,7 +114,7 @@ define(function(require, exports, module) {var anotatedDirList = [];var firstEntry = 0;// skiping the first entry pointing to the parent directory- if(isChrome) {+ if (isChrome) {firstEntry = 1;}for (var i = firstEntry; i < entries.length; i++) {diff --git a/data/node-webkit/node-webkit.api.js b/data/node-webkit/node-webkit.api.jsindex f64aa77d2..1597494f9 100644--- a/data/node-webkit/node-webkit.api.js+++ b/data/node-webkit/node-webkit.api.js@@ -307,7 +307,7 @@ define(function(require, exports, module) {eentry.lmdt = stats.mtime;eentry.path = entryPath;enhancedEntries.push(eentry);- } catch(e) {+ } catch (e) {console.warn("Error getting stats for " + entryPath);}});