Skip to content

Commit caef6a8

Browse files
committed
v2.0.4
1 parent 4c15e25 commit caef6a8

File tree

5 files changed

+11
-6
lines changed

5 files changed

+11
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ mithril.js [![npm Version](https://img.shields.io/npm/v/mithril.svg)](https://ww
1818

1919
## What is Mithril?
2020

21-
A modern client-side Javascript framework for building Single Page Applications. It's small (<!-- size -->9.78 KB<!-- /size --> gzipped), fast and provides routing and XHR utilities out of the box.
21+
A modern client-side Javascript framework for building Single Page Applications. It's small (<!-- size -->9.79 KB<!-- /size --> gzipped), fast and provides routing and XHR utilities out of the box.
2222

2323
Mithril is used by companies like Vimeo and Nike, and open source platforms like Lichess 👍.
2424

mithril.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,11 @@ var _12 = function($window) {
699699
removeHTML(parent, old)
700700
createHTML(parent, vnode3, ns, nextSibling)
701701
}
702-
else vnode3.dom = old.dom, vnode3.domSize = old.domSize
702+
else {
703+
vnode3.dom = old.dom
704+
vnode3.domSize = old.domSize
705+
vnode3.instance = old.instance
706+
}
703707
}
704708
function updateFragment(parent, old, vnode3, hooks, nextSibling, ns) {
705709
updateNodes(parent, old.children, vnode3.children, hooks, nextSibling, ns)
@@ -868,13 +872,14 @@ var _12 = function($window) {
868872
if (vnode3.attrs == null || (
869873
vnode3.attrs.contenteditable == null && // attribute
870874
vnode3.attrs.contentEditable == null // property
871-
)) return
875+
)) return false
872876
var children3 = vnode3.children
873877
if (children3 != null && children3.length === 1 && children3[0].tag === "<") {
874878
var content = children3[0].children
875879
if (vnode3.dom.innerHTML !== content) vnode3.dom.innerHTML = content
876880
}
877881
else if (vnode3.text != null || children3 != null && children3.length !== 0) throw new Error("Child node of a contenteditable must be trusted")
882+
return true
878883
}
879884
//remove
880885
function removeNodes(parent, vnodes, start, end) {

mithril.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mithril",
3-
"version": "2.0.3",
3+
"version": "2.0.4",
44
"description": "A framework for building brilliant applications",
55
"author": "Leo Horie",
66
"license": "MIT",

0 commit comments

Comments
 (0)