Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

Commit

Permalink
fixed cfg.root argument (was misspelled cfg.dir)
Browse files Browse the repository at this point in the history
  • Loading branch information
drewfish committed Nov 5, 2012
1 parent 428d92e commit 8a8d470
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/store.js
Expand Up @@ -28,7 +28,7 @@ var Store = {};
/**
* Creates a new server-side resource store instance and returns it.
* @method createStore
* @param {{dir: string,
* @param {{root: string,
* context: Object,
* appConfig: Object,
* verbose: boolean}} options An object containing store options.
Expand All @@ -43,8 +43,8 @@ Store.createStore = function(options) {
if (!options) {
options = {};
}
if (!options.dir) {
options.dir = process.cwd();
if (!options.root) {
options.root = process.cwd();
}
if (!options.context) {
options.context = {};
Expand Down Expand Up @@ -74,7 +74,7 @@ Store.createStore = function(options) {
Y.use('mojito-resource-store');

store = new Y.mojito.ResourceStore({
root: options.dir,
root: options.root,
context: options.context,
appConfig: options.appConfig
});
Expand Down

0 comments on commit 8a8d470

Please sign in to comment.