1
0
Fork 0

Set default value for app deps.

This commit is contained in:
Alan Plum 2015-04-23 15:18:23 +02:00
parent 89216506b8
commit 5289e9911f
1 changed files with 2 additions and 2 deletions

View File

@ -186,7 +186,7 @@ var computeRootAppPath = function(mount, isValidation) {
this.configure(cfg);
var depsLookup = {};
var deps = config.options.dependencies;
var deps = config.options.dependencies || {};
this._options.dependencies = deps;
this._dependencies = depsLookup;
_.each(deps, function (mount, name) {
@ -197,7 +197,7 @@ var computeRootAppPath = function(mount, isValidation) {
return require("org/arangodb/foxx").requireApp(mount);
}
});
}, this);
});
this._context = new AppContext(this);
this._context.appPackage = module.createAppPackage(this);