Skip to content
This repository was archived by the owner on Oct 29, 2019. It is now read-only.
This repository was archived by the owner on Oct 29, 2019. It is now read-only.

Extend the isInstantiated method for a check against the old and new data-* value #32

@Inkdpixels

Description

@Inkdpixels

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 ?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions