diff --git a/buildoz.js b/buildoz.js index 378eafc..74d2f0a 100644 --- a/buildoz.js +++ b/buildoz.js @@ -10,7 +10,7 @@ class Buildoz extends HTMLElement { // anything added here will be observed for all buildoz tags // in your child, add you local 'color' observable attr with : // return([...super.observedAttributes, 'color']) - return([]) + return(['name']) } static define(name, cls){ @@ -31,6 +31,7 @@ class Buildoz extends HTMLElement { attributeChangedCallback(name, oldValue, newValue) { this.attrs[name] = newValue + if(name=='name') this.name = newValue } getBZAttribute(attrName){ // Little helper for defaults