public/javascripts/WireIt/build/wireit-inputex-editor-grouping.js
function(options) {
      
      this.options = {};
      this.options.id = lang.isString(options.id) ? options.id  : Dom.generateId();
      this.options.className = options.className || "inputEx-Button";
      this.options.parentEl = lang.isString(options.parentEl) ? Dom.get(options.parentEl) : options.parentEl;
      
      // default type === "submit"
      this.options.type = (options.type === "link" || options.type === "submit-link") ? options.type : "submit";
      
      // value is the text displayed inside the button (<input type="submit" value="Submit" /> convention...)
      this.options.value = options.value;
      
      this.options.disabled = !!options.disabled;
      
      if (lang.isFunction(options.onClick)) {
         this.options.onClick = {fn: options.onClick, scope:this};
         
      } else if (lang.isObject(options.onClick)) {
         this.options.onClick = {fn: options.onClick.fn, scope: options.onClick.scope || this};
      }
      
   }
function(options) {
      
      this.options = {};
      this.options.id = lang.isString(options.id) ? options.id  : Dom.generateId();
      this.options.className = options.className || "inputEx-Button";
      this.options.parentEl = lang.isString(options.parentEl) ? Dom.get(options.parentEl) : options.parentEl;
      
      // default type === "submit"
      this.options.type = (options.type === "link" || options.type === "submit-link") ? options.type : "submit";
      
      // value is the text displayed inside the button (<input type="submit" value="Submit" /> convention...)
      this.options.value = options.value;
      
      this.options.disabled = !!options.disabled;
      
      if (lang.isFunction(options.onClick)) {
         this.options.onClick = {fn: options.onClick, scope:this};
         
      } else if (lang.isObject(options.onClick)) {
         this.options.onClick = {fn: options.onClick.fn, scope: options.onClick.scope || this};
      }
      
   }
function ( options ) { this . options = { } ; this . options . id = lang . isString ( options . id ) ? options . id : Dom . generateId ( ) ; this . options . className = options . className || "inputEx-Button" ; this . options . parentEl = lang . isString ( options . parentEl ) ? Dom . get ( options . parentEl ) : options . parentEl ; // default type === "submit" this . options . type = ( options . type === "link" || options . type === "submit-link" ) ? options . type : "submit" ; // value is the text displayed inside the button (<input type="submit" value="Submit" /> convention...) this . options . value = options . value ; this . options . disabled = ! ! options . disabled ; if ( lang . isFunction ( options . onClick ) ) { this . options . onClick = { fn : options . onClick , scope : this } ; } else if ( lang . isObject ( options . onClick ) ) { this . options . onClick = { fn : options . onClick . fn , scope : options . onClick . scope || this } ; } }
set the default options
set the default options