Create CONTRIBUTING.md

I added the following to it:

- Bug reporting
- Feature requests
- Contributing guide
- Style guide
This commit is contained in:
Isiah Meadows 2015-11-07 06:34:11 -05:00 committed by impinball
parent df114a4ee2
commit 9fab2b8371
18 changed files with 1209 additions and 352 deletions

View file

@ -20,13 +20,13 @@
function test(sel) {
return m("li", [
m("p", m("code", "m(" + JSON.stringify(sel) + ")")),
m.apply(null, arguments)
m.apply(null, arguments),
])
}
m.module(document.getElementById("test"), {
controller: function() {
this.title = m.prop("hello world");
this.title = m.prop("hello world")
},
view: function (ctrl) {
@ -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", [
@ -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)
onkeyup: m.withAttr("innerHTML", ctrl.title),
}, m.trust(ctrl.title())),
])
])
]);
}
});
]),
]),
])
},
})
</script>