lib/factory.js
function ModdleElement(attrs) {
    props.define(this, '$type', { value: name, enumerable: true });
    props.define(this, '$attrs', { value: {} });
    props.define(this, '$parent', { writable: true });

    forEach(attrs, bind(function(val, key) {
      this.set(key, val);
    }, this));
  }
function ModdleElement(attrs) {
    props.define(this, '$type', { value: name, enumerable: true });
    props.define(this, '$attrs', { value: {} });
    props.define(this, '$parent', { writable: true });

    forEach(attrs, bind(function(val, key) {
      this.set(key, val);
    }, this));
  }
function ModdleElement ( attrs ) { props . define ( this , '$type' , { value : name , enumerable : true } ) ; props . define ( this , '$attrs' , { value : { } } ) ; props . define ( this , '$parent' , { writable : true } ) ; forEach ( attrs , bind ( function ( val , key ) { this . set ( key , val ) ; } , this ) ) ; }
The new type constructor
The new type constructor