graflow: improved test pages
This commit is contained in:
@@ -1280,8 +1280,12 @@ class EditWires{
|
||||
this.graflow.addEventListener('refreshed', this.enableEditWires.bind(this))
|
||||
}
|
||||
enableEditWires(){
|
||||
this.graflow.wiresContainer.querySelectorAll('.bzgf-wirecoat').forEach(item => item.remove())
|
||||
for(const ref in this.graflow.stagedWires ){
|
||||
this.graflow.stagedWires[ref].addEventListener('click', this.onSelectWire.bind(this))
|
||||
const clone = this.graflow.stagedWires[ref].cloneNode(true)
|
||||
clone.classList.add('bzgf-wirecoat')
|
||||
this.graflow.wiresContainer.appendChild(clone)
|
||||
clone.addEventListener('click', this.onSelectWire.bind(this))
|
||||
}
|
||||
}
|
||||
onSelectWire(e){
|
||||
|
||||
Reference in New Issue
Block a user