Stackedit/public/res/folderList.js

15 lines
388 B
JavaScript
Raw Normal View History

2013-08-12 00:10:37 +00:00
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;
});