Merge pull request #2052 from pygy/fix-perf-regression
render: fix perf regression introduced by #1918
This commit is contained in:
commit
1ad9f84bb4
2 changed files with 2 additions and 2 deletions
|
|
@ -41,7 +41,7 @@
|
||||||
- API: Event handlers, when set to literally `undefined` (or any non-function), are now correctly removed.
|
- API: Event handlers, when set to literally `undefined` (or any non-function), are now correctly removed.
|
||||||
- core: `xlink:href` attributes are now correctly removed
|
- core: `xlink:href` attributes are now correctly removed
|
||||||
- render: fixed an ommission that caused `oninit` to be called unnecessarily in some cases [#1992](https://github.com/MithrilJS/mithril.js/issues/1992)
|
- render: fixed an ommission that caused `oninit` to be called unnecessarily in some cases [#1992](https://github.com/MithrilJS/mithril.js/issues/1992)
|
||||||
- render: Render state correctly on select change event [#1916](https://github.com/MithrilJS/mithril.js/issues/1916)
|
- render: Render state correctly on select change event [#1916](https://github.com/MithrilJS/mithril.js/issues/1916) ([#1918](https://github.com/MithrilJS/mithril.js/pull/1918) [@robinchew](https://github.com/robinchew), [#2052](https://github.com/MithrilJS/mithril.js/pull/2052))
|
||||||
- render: fix various updateNodes/removeNodes issues when the pool and fragments are involved [#1990](https://github.com/MithrilJS/mithril.js/issues/1990), [#1991](https://github.com/MithrilJS/mithril.js/issues/1991), [#2003](https://github.com/MithrilJS/mithril.js/issues/2003), [#2021](https://github.com/MithrilJS/mithril.js/pull/2021)
|
- render: fix various updateNodes/removeNodes issues when the pool and fragments are involved [#1990](https://github.com/MithrilJS/mithril.js/issues/1990), [#1991](https://github.com/MithrilJS/mithril.js/issues/1991), [#2003](https://github.com/MithrilJS/mithril.js/issues/2003), [#2021](https://github.com/MithrilJS/mithril.js/pull/2021)
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
|
||||||
|
|
@ -697,7 +697,7 @@ module.exports = function($window) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function isFormAttribute(vnode, attr) {
|
function isFormAttribute(vnode, attr) {
|
||||||
return attr === "value" || attr === "checked" || attr === "selectedIndex" || attr === "selected" && vnode.dom === $doc.activeElement || vnode.dom.parentNode === $doc.activeElement
|
return attr === "value" || attr === "checked" || attr === "selectedIndex" || attr === "selected" && vnode.dom === $doc.activeElement || vnode.tag === "option" && vnode.dom.parentNode === $doc.activeElement
|
||||||
}
|
}
|
||||||
function isLifecycleMethod(attr) {
|
function isLifecycleMethod(attr) {
|
||||||
return attr === "oninit" || attr === "oncreate" || attr === "onupdate" || attr === "onremove" || attr === "onbeforeremove" || attr === "onbeforeupdate"
|
return attr === "oninit" || attr === "oncreate" || attr === "onupdate" || attr === "onremove" || attr === "onbeforeremove" || attr === "onbeforeupdate"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue