Merge 'origin/patch-2', remove trailing commas

This commit is contained in:
impinball 2015-11-25 22:45:45 -05:00
parent e0f51db618
commit 0b173deed7
19 changed files with 380 additions and 384 deletions

View file

@ -20,7 +20,7 @@
function test(sel) {
return m("li", [
m("p", m("code", "m(" + JSON.stringify(sel) + ")")),
m.apply(null, arguments),
m.apply(null, arguments)
])
}
@ -35,18 +35,18 @@ m.module(document.getElementById("test"), {
m("ul", [
test("input[list=data]", {
onkeyup: m.withAttr("value", ctrl.title),
value: ctrl.title(),
value: ctrl.title()
}),
test("datalist#data", [
m("option", "John"),
m("option", "Bob"),
m("option", "Mary"),
m("option", "Mary")
]),
test("textarea", {
onkeyup: m.withAttr("value", ctrl.title),
value: ctrl.title(),
value: ctrl.title()
}),
m("li", [
@ -55,7 +55,7 @@ m.module(document.getElementById("test"), {
m("div[contenteditable]", {
style: {border: "1px solid #888"},
onkeyup: m.withAttr("innerHTML", ctrl.title)
}, ctrl.title()),
}, ctrl.title())
]),
m("li", [
@ -63,11 +63,11 @@ m.module(document.getElementById("test"), {
m("code", "m(\"div[contenteditable]\")")),
m("div[contenteditable]", {
style: {border: "1px solid #888"},
onkeyup: m.withAttr("innerHTML", ctrl.title),
}, m.trust(ctrl.title())),
]),
]),
onkeyup: m.withAttr("innerHTML", ctrl.title)
}, m.trust(ctrl.title()))
])
])
])
},
}
})
</script>