on scene selection OK + keyframe model
This commit is contained in:
@@ -10,7 +10,7 @@ class Buildoz extends HTMLElement {
|
|||||||
// anything added here will be observed for all buildoz tags
|
// anything added here will be observed for all buildoz tags
|
||||||
// in your child, add you local 'color' observable attr with :
|
// in your child, add you local 'color' observable attr with :
|
||||||
// return([...super.observedAttributes, 'color'])
|
// return([...super.observedAttributes, 'color'])
|
||||||
return([])
|
return(['name'])
|
||||||
}
|
}
|
||||||
|
|
||||||
static define(name, cls){
|
static define(name, cls){
|
||||||
@@ -31,6 +31,7 @@ class Buildoz extends HTMLElement {
|
|||||||
|
|
||||||
attributeChangedCallback(name, oldValue, newValue) {
|
attributeChangedCallback(name, oldValue, newValue) {
|
||||||
this.attrs[name] = newValue
|
this.attrs[name] = newValue
|
||||||
|
if(name=='name') this.name = newValue
|
||||||
}
|
}
|
||||||
|
|
||||||
getBZAttribute(attrName){ // Little helper for defaults
|
getBZAttribute(attrName){ // Little helper for defaults
|
||||||
|
|||||||
Reference in New Issue
Block a user