public/javascripts/WireIt/build/wireit-inputex-editor-grouping.js
function(wire) {
      var index = WireIt.indexOf(wire, this.wires); 
      if( index != -1 ) {
         
         this.wires[index].destroy();
         
         this.wires[index] = null;
         this.wires = WireIt.compact(this.wires);
      
         // Remove the connected class if it has no more wires:
         if(this.wires.length === 0) {
            Dom.removeClass(this.el, this.connectedClassName);
         }
      
         // Fire the event
         this.eventRemoveWire.fire(wire);
      }
   }
function(wire) {
      var index = WireIt.indexOf(wire, this.wires); 
      if( index != -1 ) {
         
         this.wires[index].destroy();
         
         this.wires[index] = null;
         this.wires = WireIt.compact(this.wires);
      
         // Remove the connected class if it has no more wires:
         if(this.wires.length === 0) {
            Dom.removeClass(this.el, this.connectedClassName);
         }
      
         // Fire the event
         this.eventRemoveWire.fire(wire);
      }
   }
function ( wire ) { var index = WireIt . indexOf ( wire , this . wires ) ; if ( index != - 1 ) { this . wires [ index ] . destroy ( ) ; this . wires [ index ] = null ; this . wires = WireIt . compact ( this . wires ) ; // Remove the connected class if it has no more wires: if ( this . wires . length === 0 ) { Dom . removeClass ( this . el , this . connectedClassName ) ; } // Fire the event this . eventRemoveWire . fire ( wire ) ; } }
Remove a wire
@method removeWire
@param {WireIt.Wire} wire Wire instance to remove
Remove a wire