lib/Diagram.js
function createInjector(options) {

  options = options || {};

  var configModule = {
    'config': ['value', options]
  };

  var modules = [ configModule, CoreModule ].concat(options.modules || []);

  return bootstrap(modules);
}
function createInjector(options) {

  options = options || {};

  var configModule = {
    'config': ['value', options]
  };

  var modules = [ configModule, CoreModule ].concat(options.modules || []);

  return bootstrap(modules);
}
function createInjector ( options ) { options = options || { } ; var configModule = { 'config' : [ 'value' , options ] } ; var modules = [ configModule , CoreModule ] . concat ( options . modules || [ ] ) ; return bootstrap ( modules ) ; }
Creates an injector from passed options.

@ignore
@param  {Object} options
@return {didi.Injector}
Creates an injector from passed options .