code: 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));
    }
docs: The new type constructor