cleanup and styling
This commit is contained in:
parent
76818dab24
commit
f4c1d4a998
3 changed files with 2 additions and 5 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
})
|
||||
})
|
||||
})
|
||||
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue