Revert "Merge pull request #1753 from StephanHoyer/master"
This reverts commit000eec90d8, reversing changes made toe88bddb3c8.
This commit is contained in:
parent
207dea91da
commit
baa2dc1ab0
2 changed files with 1 additions and 6 deletions
|
|
@ -73,7 +73,7 @@ function hyperscript(selector) {
|
||||||
var cached = selectorCache[selector] || compileSelector(selector)
|
var cached = selectorCache[selector] || compileSelector(selector)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (attrs == null) {
|
if (!attrs) {
|
||||||
attrs = {}
|
attrs = {}
|
||||||
} else if (typeof attrs !== "object" || attrs.tag != null || Array.isArray(attrs)) {
|
} else if (typeof attrs !== "object" || attrs.tag != null || Array.isArray(attrs)) {
|
||||||
attrs = {}
|
attrs = {}
|
||||||
|
|
|
||||||
|
|
@ -273,11 +273,6 @@ o.spec("hyperscript", function() {
|
||||||
o(vnode.children[0]).equals(null)
|
o(vnode.children[0]).equals(null)
|
||||||
o(vnode.children[1]).equals(undefined)
|
o(vnode.children[1]).equals(undefined)
|
||||||
})
|
})
|
||||||
o("handles falsy number single child without attrs", function() {
|
|
||||||
var vnode = m("div", 0)
|
|
||||||
|
|
||||||
o(vnode.text).equals(0)
|
|
||||||
})
|
|
||||||
})
|
})
|
||||||
o.spec("permutations", function() {
|
o.spec("permutations", function() {
|
||||||
o("handles null attr and children", function() {
|
o("handles null attr and children", function() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue