Skip to content

Commit 9e54179

Browse files
committed
Destroy the label editor & DOM on wire destroy
1 parent 3f60e6b commit 9e54179

12 files changed

+58
-5
lines changed

VERSION.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ Changeset:
2424
* Position constrained to (0,0) minimum
2525
* Fix FormContainer terminals positioning if the fieldset is collapsed
2626

27+
* Adding 3 Containers :
28+
* CanvasContainer : uses a canvas tag to render a container
29+
* EllipseLabelContainer : inherits the CanvasContainer to draw an ellipse
30+
* RectLabelContainer : Simple rect container with editable label
31+
2732
* Layer enhancements
2833
* Export wires properties in getWiring method
2934

build/wireit-inputex-editor-composable-min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/wireit-inputex-editor-composable.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,14 @@ YAHOO.lang.extend(WireIt.Wire, WireIt.CanvasElement, {
476476
// Remove references to old terminals
477477
this.terminal1 = null;
478478
this.terminal2 = null;
479+
480+
// Remove Label
481+
if(this.labelEl) {
482+
if(this.labelField) {
483+
this.labelField.destroy();
484+
}
485+
this.labelEl.innerHTML = "";
486+
}
479487
},
480488

481489

build/wireit-inputex-editor-grouping-min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/wireit-inputex-editor-grouping.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,14 @@ YAHOO.lang.extend(WireIt.Wire, WireIt.CanvasElement, {
476476
// Remove references to old terminals
477477
this.terminal1 = null;
478478
this.terminal2 = null;
479+
480+
// Remove Label
481+
if(this.labelEl) {
482+
if(this.labelField) {
483+
this.labelField.destroy();
484+
}
485+
this.labelEl.innerHTML = "";
486+
}
479487
},
480488

481489

build/wireit-inputex-editor-min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/wireit-inputex-editor.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,14 @@ YAHOO.lang.extend(WireIt.Wire, WireIt.CanvasElement, {
476476
// Remove references to old terminals
477477
this.terminal1 = null;
478478
this.terminal2 = null;
479+
480+
// Remove Label
481+
if(this.labelEl) {
482+
if(this.labelField) {
483+
this.labelField.destroy();
484+
}
485+
this.labelEl.innerHTML = "";
486+
}
479487
},
480488

481489

build/wireit-inputex-min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/wireit-inputex.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,14 @@ YAHOO.lang.extend(WireIt.Wire, WireIt.CanvasElement, {
476476
// Remove references to old terminals
477477
this.terminal1 = null;
478478
this.terminal2 = null;
479+
480+
// Remove Label
481+
if(this.labelEl) {
482+
if(this.labelField) {
483+
this.labelField.destroy();
484+
}
485+
this.labelEl.innerHTML = "";
486+
}
479487
},
480488

481489

build/wireit-min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)