Create a settings app to manage user objects

This commit is contained in:
yflory
2017-02-14 19:04:57 +01:00
parent 71b84afdb2
commit cd9cea8fa4
11 changed files with 71 additions and 23 deletions

View File

@@ -30,6 +30,16 @@ define([
console.error.apply(console, arguments);
};
var getStructure = exp.getStructure = function () {
var a = {};
a[ROOT] = {};
a[UNSORTED] = [];
a[TRASH] = {};
a[FILES_DATA] = [];
a[TEMPLATE] = [];
return a;
};
var comparePath = exp.comparePath = function (a, b) {
if (!a || !b || !$.isArray(a) || !$.isArray(b)) { return false; }
if (a.length !== b.length) { return false; }