Stackedit/res/folderList.js
2013-08-26 06:58:18 +02:00

15 lines
388 B
JavaScript

define([
"underscore",
"utils",
"classes/FolderDescriptor",
"storage",
], function(_, utils, FolderDescriptor) {
var folderList = {};
// Retrieve folder descriptors from localStorage
_.each(utils.retrieveIndexArray("folder.list"), function(folderIndex) {
folderList[folderIndex] = new FolderDescriptor(folderIndex);
});
return folderList;
});