Merge pull request #186 from oleg8sh/patch-3

Don't insert blank text node into every tag (yet another IE8 issue)
This commit is contained in:
Leo Horie 2014-08-08 20:38:15 -04:00
commit 4dd9303ac1

View file

@ -29,7 +29,8 @@ Mithril = m = new function app(window, undefined) {
return cell
}
function build(parentElement, parentTag, parentCache, parentIndex, data, cached, shouldReattach, index, editable, namespace, configs) {
if (data === null || data === undefined) data = ""
if (data === undefined) return undefined
if (data === null) data = ""
if (data.subtree === "retain") return cached
var cachedType = type.call(cached), dataType = type.call(data)