m.module -> m.mount: fix sample code in HTML files

This commit is contained in:
Matheus Kautzmann 2015-08-28 09:07:08 -03:00
parent dfa1da0652
commit 343ffc8d36
3 changed files with 11 additions and 11 deletions

View file

@ -62,14 +62,14 @@ var ContactForm = {
},
view: function(ctrl) {
var contact = ctrl.contact()
return m("form", [
m("label", "Name"),
m("input", {oninput: m.withAttr("value", contact.name), value: contact.name()}),
m("label", "Email"),
m("input", {oninput: m.withAttr("value", contact.email), value: contact.email()}),
m("button[type=button]", {onclick: ctrl.createContact}, "Create")
])
}
@ -92,5 +92,5 @@ var ContactList = {
}
}
m.module(document.body, ContactsWidget)
</script>
m.mount(document.body, ContactsWidget)
</script>