cleanup and styling

This commit is contained in:
Leo Horie 2016-05-11 11:52:41 -04:00
parent 76818dab24
commit f4c1d4a998
3 changed files with 2 additions and 5 deletions

View file

@ -358,9 +358,7 @@ module.exports = function($window, onevent) {
if (value) element.setAttribute(key, "")
else element.removeAttribute(key)
}
else element.setAttribute(
key === "className" ? "class" : key,
value)
else element.setAttribute(key === "className" ? "class" : key, value)
}
}
function setLateAttrs(vnode) {

View file

@ -82,7 +82,7 @@ o.spec("attributes", function() {
render(root, [a]);
o(a.dom.attributes.class.nodeValue).equals("test")
o(a.dom.attributes["class"].nodeValue).equals("test")
})
})
})

View file

@ -7,7 +7,6 @@ o.spec("domMock", function() {
var $document
o.beforeEach(function() {
$document = domMock().document
//$document = document //TODO clean up
})
o.spec("createElement", function() {