1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-15 23:00:36 +02:00

Revert "Applied prettier to code base"

This reverts commit c4f19465a6.
This commit is contained in:
Laurent Cozic
2018-03-09 20:59:12 +00:00
parent 5e8b09f5af
commit 55c5ddedf4
203 changed files with 7883 additions and 13355 deletions

View File

@ -13,8 +13,8 @@ ObjectUtils.sortByValue = function(object) {
temp.sort(function(a, b) {
let v1 = a.value;
let v2 = b.value;
if (typeof v1 === "string") v1 = v1.toLowerCase();
if (typeof v2 === "string") v2 = v2.toLowerCase();
if (typeof v1 === 'string') v1 = v1.toLowerCase();
if (typeof v2 === 'string') v2 = v2.toLowerCase();
if (v1 === v2) return 0;
return v1 < v2 ? -1 : +1;
});
@ -26,11 +26,11 @@ ObjectUtils.sortByValue = function(object) {
}
return output;
};
}
ObjectUtils.fieldsEqual = function(o1, o2) {
if ((!o1 || !o2) && o1 !== o2) return false;
if ((!o1 || !o2) && (o1 !== o2)) return false;
for (let k in o1) {
if (!o1.hasOwnProperty(k)) continue;
if (o1[k] !== o2[k]) return false;
@ -42,6 +42,6 @@ ObjectUtils.fieldsEqual = function(o1, o2) {
if (c1.length !== c2.length) return false;
return true;
};
}
module.exports = ObjectUtils;
module.exports = ObjectUtils;