public/javascripts/WireIt/build/wireit-inputex-editor-grouping.js
function(event, args) {
      var wire = args[0];
      // add the wire to the list if it isn't in
      if( WireIt.indexOf(wire, this.wires) == -1 ) {
         this.wires.push(wire);
         this.eventAddWire.fire(wire);
      } 
   }
function(event, args) {
      var wire = args[0];
      // add the wire to the list if it isn't in
      if( WireIt.indexOf(wire, this.wires) == -1 ) {
         this.wires.push(wire);
         this.eventAddWire.fire(wire);
      } 
   }
function ( event , args ) { var wire = args [ 0 ] ; // add the wire to the list if it isn't in if ( WireIt . indexOf ( wire , this . wires ) == - 1 ) { this . wires . push ( wire ) ; this . eventAddWire . fire ( wire ) ; } }
This method is called when a wire is added to one of the terminals
@method onAddWire
@param {Event} event The eventAddWire event fired by the terminal
@param {Array} args This array contains a single element args[0] which is the added Wire instance
This method is called when a wire is added to one of the terminals