Remove extra isLifecycleMethod call from removeAttr (#2594)
This commit is contained in:
parent
f9c9f6682d
commit
cf7a841c4c
2 changed files with 2 additions and 1 deletions
|
|
@ -29,6 +29,7 @@
|
||||||
- Add `params:` attribute to `m.route.Link`. ([#2537](https://github.com/MithrilJS/mithril.js/pull/2537) [@isiahmeadows](https://github.com/isiahmeadows))
|
- Add `params:` attribute to `m.route.Link`. ([#2537](https://github.com/MithrilJS/mithril.js/pull/2537) [@isiahmeadows](https://github.com/isiahmeadows))
|
||||||
- Add `m.censor`. ([#2538](https://github.com/MithrilJS/mithril.js/pull/2538) [@isiahmeadows](https://github.com/isiahmeadows))
|
- Add `m.censor`. ([#2538](https://github.com/MithrilJS/mithril.js/pull/2538) [@isiahmeadows](https://github.com/isiahmeadows))
|
||||||
- Re-add stream bundles. ([#2539](https://github.com/MithrilJS/mithril.js/pull/2539) [@isiahmeadows](https://github.com/isiahmeadows))
|
- Re-add stream bundles. ([#2539](https://github.com/MithrilJS/mithril.js/pull/2539) [@isiahmeadows](https://github.com/isiahmeadows))
|
||||||
|
- Remove extra isLifecycleMethod call from removeAttr. ([#2594](https://github.com/MithrilJS/mithril.js/pull/2594) [@ZeikJT](https://github.com/zeikjt))
|
||||||
|
|
||||||
Important note: if you were using any of these undocumented tools, they are no longer available as of this release. This is not considered a breaking change as they were written for internal usage and as of v2 are all 100% unsupported in userland.
|
Important note: if you were using any of these undocumented tools, they are no longer available as of this release. This is not considered a breaking change as they were written for internal usage and as of v2 are all 100% unsupported in userland.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -760,7 +760,7 @@ module.exports = function($window) {
|
||||||
}
|
}
|
||||||
function removeAttr(vnode, key, old, ns) {
|
function removeAttr(vnode, key, old, ns) {
|
||||||
if (key === "key" || key === "is" || old == null || isLifecycleMethod(key)) return
|
if (key === "key" || key === "is" || old == null || isLifecycleMethod(key)) return
|
||||||
if (key[0] === "o" && key[1] === "n" && !isLifecycleMethod(key)) updateEvent(vnode, key, undefined)
|
if (key[0] === "o" && key[1] === "n") updateEvent(vnode, key, undefined)
|
||||||
else if (key === "style") updateStyle(vnode.dom, old, null)
|
else if (key === "style") updateStyle(vnode.dom, old, null)
|
||||||
else if (
|
else if (
|
||||||
hasPropertyKey(vnode, key, ns)
|
hasPropertyKey(vnode, key, ns)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue