Parse info.json to set module defaults (#650)

* changes

* changes

* changes

* changes

* changes

* changes
This commit is contained in:
Mridul97
2019-02-06 21:40:54 +05:30
committed by Jeffrey Warren
parent 6b305a02f5
commit 6153dbfdaa
19 changed files with 13833 additions and 13713 deletions

View File

@@ -1,7 +1,8 @@
module.exports = function Dynamic(options, UI, util) {
options.x = options.x || 0;
options.y = options.y || 0;
var defaults = require('./../../util/getDefaults.js')(require('./info.json'));
options.x = options.x || defaults.x;
options.y = options.y || defaults.y;
var output;