Compare commits

..

No commits in common. "74de53874beaeae633080fdef0e0572b69dca32e" and "12daec85e6e2254bf0bf9c6a534df76d9a56d344" have entirely different histories.

2 changed files with 1 additions and 5 deletions

View file

@ -3,7 +3,7 @@
"version": "1.7.0",
"author": "darkwiiplayer",
"license": "Unlicense",
"main": "render.js",
"main": "skooma.js",
"type": "module",
"repository": {
"type": "git",

View file

@ -134,9 +134,6 @@ class ReplacedEvent extends Event {
}
}
/** @type {WeakMap<Text|Element,Text|Element>} */
export const newer = new WeakMap()
/**
* @param {Observable} observable
* @return {Element|Text}
@ -150,7 +147,6 @@ export const reactiveElement = observable => {
const element = ref.deref()
if (element.dispatchEvent(new ReplaceEvent(next)))
element.replaceWith(next)
newer.set(this, next)
element.dispatchEvent(new ReplacedEvent(next))
}, {once: true})
return element