function Module(options) {

    // Shallow clone the options
    options = mixin({}, options);

    // Various config steps
    this._configure(options);
    this._add(options.children);

    // Fire before initialize event hook
    this.fireStatic('before initialize', options);

    // Run initialize hooks
    if (this.initialize) this.initialize(options);

    // Fire initialize event hook
    this.fireStatic('initialize', options);
  }
function Module(options) {

    
    options = mixin({}, options);

    
    this._configure(options);
    this._add(options.children);

    
    this.fireStatic('before initialize', options);

    
    if (this.initialize) this.initialize(options);

    
    this.fireStatic('initialize', options);
  }
function Module ( options ) { // Shallow clone the options options = mixin ( { } , options ) ; // Various config steps this . _configure ( options ) ; this . _add ( options . children ) ; // Fire before initialize event hook this . fireStatic ( 'before initialize' , options ) ; // Run initialize hooks if ( this . initialize ) this . initialize ( options ) ; // Fire initialize event hook this . fireStatic ( 'initialize' , options ) ; }
Module constructor

Options:

- `id {String}` a unique id to query by
- `model {Object|Model}` the data with which to associate this module
- `tag {String}` tagName to use for the root element
- `classes {Array}` list of classes to add to the root element
- `template {Function}` a template to use for rendering
- `helpers {Array}`a list of helper function to use on this module
- `children {Object|Array}` list of child modules

@constructor
@param {Object} options
@api public
Module constructor