Stackedit/public/res/folderList.js
2013-10-06 21:26:11 +01: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;
});