Skip to content

Commit

Permalink
v1.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
pygy committed Apr 4, 2017
1 parent 4772055 commit 8a7f2f8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions mithril.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down Expand Up @@ -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 = {}
Expand Down Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions mithril.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mithril",
"version": "1.1.0",
"version": "1.1.1",
"description": "A framework for building brilliant applications",
"author": "Leo Horie",
"license": "MIT",
Expand Down

0 comments on commit 8a7f2f8

Please sign in to comment.