Simulator first commit
This commit is contained in:
14
node_modules/config/defer.js
generated
vendored
Normal file
14
node_modules/config/defer.js
generated
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
// Create a deferredConfig prototype so that we can check for it when reviewing the configs later.
|
||||
function DeferredConfig () {
|
||||
}
|
||||
DeferredConfig.prototype.resolve = function (config, original) {};
|
||||
|
||||
// Accept a function that we'll use to resolve this value later and return a 'deferred' configuration value to resolve it later.
|
||||
function deferConfig (func) {
|
||||
var obj = Object.create(DeferredConfig.prototype);
|
||||
obj.resolve = func;
|
||||
return obj;
|
||||
}
|
||||
|
||||
module.exports.deferConfig = deferConfig;
|
||||
module.exports.DeferredConfig = DeferredConfig;
|
Reference in New Issue
Block a user