v1.1.1
This commit is contained in:
parent
4772055629
commit
8a7f2f85d7
3 changed files with 10 additions and 10 deletions
|
|
@ -42,8 +42,8 @@ function execSelector(state, attrs, children) {
|
|||
attrs[key] = state.attrs[key]
|
||||
}
|
||||
}
|
||||
if (className != null) {
|
||||
if (attrs.class != null) {
|
||||
if (className !== undefined) {
|
||||
if (attrs.class !== undefined) {
|
||||
attrs.class = undefined
|
||||
attrs.className = className
|
||||
}
|
||||
|
|
@ -73,7 +73,7 @@ function hyperscript(selector) {
|
|||
if (typeof selector === "string") {
|
||||
var cached = selectorCache[selector] || compileSelector(selector)
|
||||
}
|
||||
if (!attrs) {
|
||||
if (attrs == null) {
|
||||
attrs = {}
|
||||
} else if (typeof attrs !== "object" || attrs.tag != null || Array.isArray(attrs)) {
|
||||
attrs = {}
|
||||
|
|
@ -1220,7 +1220,7 @@ m.request = requestService.request
|
|||
m.jsonp = requestService.jsonp
|
||||
m.parseQueryString = parseQueryString
|
||||
m.buildQueryString = buildQueryString
|
||||
m.version = "1.1.0"
|
||||
m.version = "1.1.1"
|
||||
m.vnode = Vnode
|
||||
if (typeof module !== "undefined") module["exports"] = m
|
||||
else window.m = m
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue