Bundled output for commit 83884bdc90 [skip ci]

This commit is contained in:
Gandalf-the-Bot 2018-02-08 23:49:55 +00:00
parent 83884bdc90
commit 1410e35456
3 changed files with 46 additions and 42 deletions

View file

@ -997,6 +997,10 @@ var coreRenderer = function($window) {
function setAttr(vnode, key2, old, value, ns) {
if (key2 === "key" || key2 === "is" || isLifecycleMethod(key2)) return
if (key2[0] === "o" && key2[1] === "n") return updateEvent(vnode, key2, value)
if (typeof value === "undefined" && key2 === "value" && old !== value) {
vnode.dom.value = ""
return
}
if ((old === value && !isFormAttribute(vnode, key2)) && typeof value !== "object" || value === undefined) return
var element = vnode.dom
if (key2.slice(0, 6) === "xlink:") element.setAttributeNS("http://www.w3.org/1999/xlink", key2, value)