Skip to content

Instantly share code, notes, and snippets.

@dlueth
Last active January 2, 2018 15:23
Show Gist options
  • Save dlueth/b57d739d7546a9f1e8ec47a7c82b32fc to your computer and use it in GitHub Desktop.
Save dlueth/b57d739d7546a9f1e8ec47a7c82b32fc to your computer and use it in GitHub Desktop.
Qoopido.demand: Extended module with configuration settings - see https://github.com/dlueth/qoopido.demand for further details
(function() {
'use strict';
function definition(demand, provide, path, isObject) {
var settings;
function onPostConfigure(options) {
settings = isObject(options) ? options : {};
}
demand.on('postConfigure:' + path, onPostConfigure);
function MyExtendedModule() {
}
MyExtendedModule.prototype = {
};
return MyExtendedModule;
}
provide([ 'demand', 'provide', 'path', '/demand/validator/isObject' ], definition);
}());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment