This will come in handy if we implement the MutationObserver API and a script modifies the data-component-tag, which currently does not implies a re-run since the element was already instantiated(even though with a different name/constructor).
Maybe we could just transfer the this.elements array into an object which holds the key/value, or in our case the element/value, so we can check if the element should be instantiated with a different value.
Thoughts @reduct/owners ?
This will come in handy if we implement the MutationObserver API and a script modifies the
data-component-tag, which currently does not implies a re-run since the element was already instantiated(even though with a different name/constructor).Maybe we could just transfer the
this.elementsarray into an object which holds the key/value, or in our case the element/value, so we can check if the element should be instantiated with a different value.Thoughts @reduct/owners ?