Stackedit/js/folderList.js
2013-08-12 01:10:37 +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;
});