public/javascripts/WireIt/build/wireit-inputex-editor-grouping.js
function() {
   
      // Remove the canvas from the dom
      this.parentEl.removeChild(this.element);
   
      // Remove the wire reference from the connected terminals
    	if(this.terminal1 && this.terminal1.removeWire) {
			this.terminal1.removeWire(this);
    	}
    	if(this.terminal2 && this.terminal2.removeWire) {
			this.terminal2.removeWire(this);
    	}

    	// Remove references to old terminals
    	this.terminal1 = null;
    	this.terminal2 = null;

		// Remove Label
		if(this.labelEl) {
			if(this.labelField) {
				this.labelField.destroy();
			}
			this.labelEl.innerHTML = "";
		}
   }
function() {
   
      // Remove the canvas from the dom
      this.parentEl.removeChild(this.element);
   
      // Remove the wire reference from the connected terminals
    	if(this.terminal1 && this.terminal1.removeWire) {
			this.terminal1.removeWire(this);
    	}
    	if(this.terminal2 && this.terminal2.removeWire) {
			this.terminal2.removeWire(this);
    	}

    	// Remove references to old terminals
    	this.terminal1 = null;
    	this.terminal2 = null;

		// Remove Label
		if(this.labelEl) {
			if(this.labelField) {
				this.labelField.destroy();
			}
			this.labelEl.innerHTML = "";
		}
   }
function ( ) { // Remove the canvas from the dom this . parentEl . removeChild ( this . element ) ; // Remove the wire reference from the connected terminals if ( this . terminal1 && this . terminal1 . removeWire ) { this . terminal1 . removeWire ( this ) ; } if ( this . terminal2 && this . terminal2 . removeWire ) { this . terminal2 . removeWire ( this ) ; } // Remove references to old terminals this . terminal1 = null ; this . terminal2 = null ; // Remove Label if ( this . labelEl ) { if ( this . labelField ) { this . labelField . destroy ( ) ; } this . labelEl . innerHTML = "" ; } }
Remove a Wire from the Dom
@method remove
Remove a Wire from the Dom