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);
         
         if(this.enableMouseEvents) {
            YAHOO.util.Event.addListener(wire.element, "mousemove", this.onWireMouseMove, this, true);
            YAHOO.util.Event.addListener(wire.element, "click", this.onWireClick, this, true);
         }
         
         // Re-Fire an event at the layer level
         this.eventAddWire.fire(wire);

			// Fire the layer changed event
			this.eventChanged.fire(this);
      }
   }
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);
         
         if(this.enableMouseEvents) {
            YAHOO.util.Event.addListener(wire.element, "mousemove", this.onWireMouseMove, this, true);
            YAHOO.util.Event.addListener(wire.element, "click", this.onWireClick, this, true);
         }
         
         // Re-Fire an event at the layer level
         this.eventAddWire.fire(wire);

			// Fire the layer changed event
			this.eventChanged.fire(this);
      }
   }
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 ) ; if ( this . enableMouseEvents ) { YAHOO . util . Event . addListener ( wire . element , "mousemove" , this . onWireMouseMove , this , true ) ; YAHOO . util . Event . addListener ( wire . element , "click" , this . onWireClick , this , true ) ; } // Re-Fire an event at the layer level this . eventAddWire . fire ( wire ) ; // Fire the layer changed event this . eventChanged . fire ( this ) ; } }
Update the wire list when any of the containers fired the eventAddWire
@method onAddWire
@param {Event} event The eventAddWire event fired by the container
@param {Array} args This array contains a single element args[0] which is the added Wire instance
Update the wire list when any of the containers fired the eventAddWire