@chapeaux/cpx-operator-graph
Advanced tools
Comparing version 0.6.2 to 0.7.0
@@ -152,8 +152,4 @@ var B = 8, G = -1; | ||
channels = []; | ||
_edges; | ||
get edges() { | ||
if (!this._edges) { | ||
this._edges = this.shadowRoot.getElementById('edges'); | ||
} | ||
return this._edges; | ||
return this.shadowRoot.getElementById('edges'); | ||
} | ||
@@ -193,3 +189,2 @@ _replaced = false; | ||
this._active = val; | ||
console.log('Active change', this._active, this.version, this.edges.firstChild); | ||
while(this.edges.firstChild){ | ||
@@ -226,3 +221,2 @@ this.edges.removeChild(this.edges.firstChild); | ||
if (detail.version && detail.version !== this.version) { | ||
console.log('Listener removal', this.version, this.edges.firstChild); | ||
while(this.edges.firstChild){ | ||
@@ -229,0 +223,0 @@ this.edges.removeChild(this.edges.firstChild); |
@@ -131,6 +131,6 @@ var B = 8, G = -1; | ||
this.shadowRoot.innerHTML = this.html; | ||
globalThis.addEventListener('graph-active', this.activeListener); | ||
if (!this.replaces && !this.skip_range && !this.skips) { | ||
this.setAttribute('outbound', ''); | ||
} | ||
globalThis.addEventListener('graph-active', this.activeListener); | ||
} | ||
@@ -153,8 +153,4 @@ disconnectedCallback() { | ||
channels = []; | ||
_edges; | ||
get edges() { | ||
if (!this._edges) { | ||
this._edges = this.shadowRoot.getElementById('edges'); | ||
} | ||
return this._edges; | ||
return this.shadowRoot.getElementById('edges'); | ||
} | ||
@@ -194,3 +190,2 @@ _replaced = false; | ||
this._active = val; | ||
console.log('Active change', this._active, this.version, this.edges.firstChild); | ||
while(this.edges.firstChild){ | ||
@@ -227,3 +222,2 @@ this.edges.removeChild(this.edges.firstChild); | ||
if (detail.version && detail.version !== this.version) { | ||
console.log('Listener removal', this.version, this.edges.firstChild); | ||
while(this.edges.firstChild){ | ||
@@ -271,3 +265,2 @@ this.edges.removeChild(this.edges.firstChild); | ||
} | ||
console.log('Listener placed', this.version, detail.replaces, detail.skip_min, this.edges.innerHTML); | ||
} | ||
@@ -274,0 +267,0 @@ } |
{ | ||
"name": "@chapeaux/cpx-operator-graph", | ||
"version": "0.6.2", | ||
"version": "0.7.0", | ||
"description": "Chapeaux Operator Graph Component", | ||
@@ -32,3 +32,3 @@ "type": "module", | ||
"homepage": "https://github.com/chapeaux/cpx-components/components/cpx-operator-graph", | ||
"gitHead": "5173ff25f1970ba2295471244d654619d8668343", | ||
"gitHead": "874d21962f1a81e75dedec2d280e3845e87f1825", | ||
"dependencies": { | ||
@@ -35,0 +35,0 @@ "semver-parser": "^4.0.0" |
86545
1297