Commit graph

364 commits

Author SHA1 Message Date
Leo Horie
931dbabbcd fix typo 2015-05-03 19:31:05 -04:00
Leo Horie
a3cc70863c fix link 2015-05-01 09:30:18 -04:00
Leo Horie
c45ba9600a add migration note 2015-04-30 21:52:38 -04:00
Leo Horie
cafedae62f Merge remote-tracking branch 'origin/next' into next 2015-04-29 21:44:00 -04:00
Leo Horie
6f1bdc916c fixed typo 2015-04-29 21:43:38 -04:00
pelonpelon
b48f8bf79c Docs: mithril.component.md - Recommended changes
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 #3/#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.
2015-04-29 12:39:10 -05:00
pelonpelon
9d20a7cd8a Update mithril.component.md 2015-04-29 11:57:51 -05:00
pelonpelon
9c6cbab43e Update mithril.component.md
- The term *rollback* should be explained or replaced
- caveat #3/#4: Should *root element* be changed to *top-most element* so as not to be confused with the element the component is mounted on ?
2015-04-29 11:50:07 -05:00
pelonpelon
62e38287f7 Docs: mithril.component.m - Recommended changes
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 additions:

- a general explanation of the args param as in `controller: function(args) {` and `view: function(ctrl, args) { ...`
- a specific explanation of how {data: args} in m.request() becomes url parameters (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) { ...`
2015-04-28 23:26:18 -05:00
Leo Horie
5ec440da21 add more caveats to docs 2015-04-28 16:23:38 -04:00
Leo Horie
202f51c4ef remove outdated warning 2015-04-27 22:02:12 -04:00
Leo Horie
2177fbd446 improve docs 2015-04-24 08:22:42 -04:00
Leo Horie
82ceecd290 fix broken example in docs 2015-04-24 08:13:21 -04:00
Leo Horie
24a8b0b31c add some points to address common criticism 2015-04-22 22:46:01 -04:00
Leo Horie
fceb02e887 add note about MSX in guide 2015-04-22 22:34:31 -04:00
Leo Horie
585f1fe925 clean up markup for tweets 2015-04-22 22:03:12 -04:00
Leo Horie
7127df6e0e show some newer tweets 2015-04-22 21:49:54 -04:00
Leo Horie
f70b4cc01b update size 2015-04-22 21:18:55 -04:00
Leo Horie
5a786009c5 remove references to m.module 2015-04-22 21:18:41 -04:00
Leo Horie
f0b20da30a update docs about config: m.route 2015-04-22 20:32:39 -04:00
Leo Horie
f557b3cd5c Merge remote-tracking branch 'origin/next' into components 2015-04-22 20:21:21 -04:00
Alexander Travov
99b78b0e7c Fix URI.js url 2015-04-22 21:24:03 +03:00
Leo Horie
3137b63b12 add docs about infinite loop pitfall 2015-04-21 21:45:21 -04:00
Leo Horie
7b96a583b3 improve docs 2015-04-21 08:20:00 -04:00
Leo Horie
c0865c6b85 update change log 2015-04-20 22:19:58 -04:00
Leo Horie
c9be4b30ce improve docs about redrawing 2015-04-20 22:16:27 -04:00
Leo Horie
e4906706b1 fix template compiler edge cases 2015-04-17 22:09:14 -04:00
Leo Horie
981fae0a20 Merge branch 'next' into components 2015-04-17 08:14:37 -04:00
Leo Horie
bca33a0b78 fix docs about using bleeding edge from npm 2015-04-15 22:41:15 -04:00
Yoshiki Shibukawa
3eac4a2596 Duplicated senteces
Signature document for "background" option contains almost same meaning sentences. First one has more information, and I think separated warning message is easy to read (difficult to pass through), I changed like this:

* Remove a simpler sentence.
* Move a detailed sentence to the bottom where simpler sentence was originally.
2015-04-15 11:10:27 +09:00
Leo Horie
a7052510d6 Merge branch 'next' into components 2015-04-14 20:40:28 -04:00
Leo Horie
de9e08f885 Merge remote-tracking branch 'origin/components' into components 2015-04-14 20:40:08 -04:00
Leo Horie
41d440eaa7 add meta description and equalize protocol for twitter widgets 2015-04-14 20:39:49 -04:00
Arthur Clemens
b3411f9509 Typo: redundant parens 2015-04-15 00:46:56 +02:00
Yoshiki Shibukawa
2f649b75be Update mithril.route.md 2015-04-15 00:50:29 +09:00
Leo Horie
4d03595bb1 example 2015-04-13 22:17:00 -04:00
Leo Horie
1b24e16639 Merge branch 'next' into components 2015-04-13 08:29:29 -04:00
Leo Horie
2923104d27 clean up 2015-04-13 08:29:03 -04:00
Yoshiki Shibukawa
f3183a709f Update mithril.md
Fix spelling
2015-04-13 08:47:08 +09:00
Leo Horie
aa541bff79 document vdom arg in config 2015-04-10 22:32:54 -04:00
Leo Horie
6a9bfdca88 improve docs 2015-04-10 22:27:50 -04:00
Leo Horie
33dcf641fc Merge branch 'next' into components 2015-04-10 20:57:05 -04:00
Leo Horie
4b7122707d Merge pull request #543 from alexander-travov/next
Fix docstring for m.route.parseQueryString
2015-04-10 20:56:16 -04:00
Leo Horie
c7196c897d Merge branch 'next' into components 2015-04-10 20:55:19 -04:00
Leo Horie
51100bf920 link to change log from home 2015-04-10 20:55:09 -04:00
Alexander Travov
eb04351e97 Fix docstring for m.route.parseQueryString 2015-04-11 01:22:42 +03:00
Leo Horie
465632b1c3 Merge branch 'next' into components 2015-04-09 22:46:25 -04:00
Leo Horie
0273eb13a0 fix markup of example 2015-04-09 22:46:13 -04:00
Leo Horie
9e8dc6998d rework api 2015-04-09 22:44:45 -04:00
Leo Horie
6abb868c6b remove stuff that got moved to api page 2015-04-06 22:54:00 -04:00