function Module (rawModule, runtime) {
  this.runtime = runtime;
  // Store some children item
  this._children = Object.create(null);
  // Store the origin module object which passed by programmer
  this._rawModule = rawModule;
  var rawState = rawModule.state;

  // Store the origin module's state
  this.state = (typeof rawState === 'function' ? rawState() : rawState) || {};
}
function Module (rawModule, runtime) {
  this.runtime = runtime;
  // Store some children item
  this._children = Object.create(null);
  // Store the origin module object which passed by programmer
  this._rawModule = rawModule;
  var rawState = rawModule.state;

  // Store the origin module's state
  this.state = (typeof rawState === 'function' ? rawState() : rawState) || {};
}
function Module ( rawModule , runtime ) { this . runtime = runtime ; // Store some children item this . _children = Object . create ( null ) ; // Store the origin module object which passed by programmer this . _rawModule = rawModule ; var rawState = rawModule . state ; // Store the origin module's state this . state = ( typeof rawState === 'function' ? rawState ( ) : rawState ) || { } ; }
Base data struct for store's module, package with some attribute and method
Base data struct for store s module package with some attribute and method
The module object