Permalink
Browse files

Restores stores' DefaultStore

  • Loading branch information...
1 parent 15ee5a0 commit e057d876f7db7e110bdc3d721a0393dbfabb03b6 @kriszyp kriszyp committed Jan 28, 2010
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/stores.js
View
@@ -2,7 +2,9 @@
* This is manager for the interaction between faceted data in the form of JavaScript
* objects and the underlying data stores.
*/
-
+exports.DefaultStore = function(name){
+ return JSFile((require("settings").dataFolder || "data") + "/" + name);
+};
var stores = {};
var storesForDefault = {};
@@ -104,3 +106,4 @@ exports.AutoTransaction = function(store, database){
}
return store;
}
+var JSFile = require("./store/js-file").JSFile;

0 comments on commit e057d87

Please sign in to comment.