Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typo in mithril.route.md #3

Merged
merged 1 commit into from
Mar 20, 2014
Merged

Fix typo in mithril.route.md #3

merged 1 commit into from
Mar 20, 2014

Conversation

eiriksm
Copy link
Contributor

@eiriksm eiriksm commented Mar 18, 2014

Hello.

First off, kick ass stuff. Sitting here writing my first mithril app as we speak.

Just found a small typo in the routing docs, so I though I would send in a pull request and fix it up.

Thanks again, and have a great day!

lhorie added a commit that referenced this pull request Mar 20, 2014
Fix typo in mithril.route.md
@lhorie lhorie merged commit 8603c89 into MithrilJS:master Mar 20, 2014
@lhorie
Copy link
Member

lhorie commented Mar 20, 2014

Thanks for catching that!

Merged and published to site

@pelonpelon pelonpelon mentioned this pull request Jan 31, 2015
pelonpelon added a commit to pelonpelon/mithril.js that referenced this pull request Apr 29, 2015
- The term *rollback* should be explained or replaced
- caveat MithrilJS#3/MithrilJS#4: Should *root element* be changed to *top-most element* so as not to be confused with the element the component is mounted on ?
pelonpelon added a commit to pelonpelon/mithril.js that referenced this pull request Apr 29, 2015
These changes make the the text clearer to me. I did not want to change the voice of the text, but I tried to clear out some verbosity and improve consistency. I did my best not to interfere with the logic of the prose.

This document seems written to stand on its own, so I recommend the following changes:

- a general explanation of the args param as in `controller: function(args) {` and `view: function(ctrl, args) { ...` (when first used, well before the signature)
- a specific explanation of {data: args} in m.request() (mithril.request.md could use the same treatment)
- an explanation of the extras param as in `controller: function(args, extras) {` and `view: function(ctrl, args, extras) { ...`
- the term *rollback* should be explained or replaced
- caveat MithrilJS#3/MithrilJS#4: Should *root element* be changed to *top-most element* so as not to be confused with the element the component is mounted on ?
- in testing, explain why the first param to view is `null`

I hope you can find some of this useful.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants