# HG changeset patch # User Nicholas Jillings # Date 1473329123 -3600 # Node ID bc6edd2c8772d86345bb7a20d41097f59f1f934b # Parent 26045169b4b56d31dc448ebd1a167fc761207cf9 Completed #5 diff -r 26045169b4b5 -r bc6edd2c8772 test_create/test_core.js --- a/test_create/test_core.js Thu Sep 08 10:54:57 2016 +0100 +++ b/test_create/test_core.js Thu Sep 08 11:05:23 2016 +0100 @@ -2011,7 +2011,7 @@ root: document.createElement("button"), parent: this, handleEvent: function(event) { - this.root.parentElement.removeChild(this.root); + this.parent.parent.childrenDOM.removeChild(this.parent.rootDOM); this.parent.parent.addConditional.root.disabled = false; var index = this.parent.parent.children.findIndex(function(element){ if (this == element) {return true;} return false; @@ -2019,6 +2019,12 @@ if (index >= 0) { this.parent.parent.children.splice(index,1); } + index = this.parent.parent.specification.conditions.findIndex(function(element){ + if (this == element) {return true;} return false; + },this.parent.specification); + if (index >= 0) { + this.parent.parent.specification.conditions.splice(index); + } } } this.deleteNode.root.textContent = "Delete";