gremlins
gremlins copied to clipboard
dead simple web components
Hi. We noticed a deprecation warning in the latest version of Chrome: > [Deprecation] document.registerElement is deprecated and will be removed in M73, around March 2019. Please use window.customElements.define instead....
It's not guaranteed, that a gremlin has already been instantiated when using this method. `findGremlin` should not return the component but a promise.
If the dom element gets removed from the dom and added again later, gremlinjs instantiates the element twice. It should use a repaint/refresh callback instead.