graflow: cleanup in subflow child params inheritance
This commit is contained in:
+1
-1
@@ -235,7 +235,7 @@ class BZgraflow extends Buildoz{
|
|||||||
const childEl = document.createElement('bz-graflow')
|
const childEl = document.createElement('bz-graflow')
|
||||||
childEl.isSubflow = true
|
childEl.isSubflow = true
|
||||||
childEl.currentOrientation = this.currentOrientation
|
childEl.currentOrientation = this.currentOrientation
|
||||||
const inheritedAttrs = ['orientation', 'gapx', 'gapy', 'tween', 'align', 'tension', 'wiretype', 'edit']
|
const inheritedAttrs = ['orientation', 'gapx', 'gapy', 'tween', 'align', 'tension', 'wiretype', 'edit'] // ! Not 'isolated' !
|
||||||
for(const attrName of inheritedAttrs){
|
for(const attrName of inheritedAttrs){
|
||||||
if(this.hasAttribute(attrName)) childEl.setAttribute(attrName, this.getAttribute(attrName))
|
if(this.hasAttribute(attrName)) childEl.setAttribute(attrName, this.getAttribute(attrName))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user