Commit graph

929 commits

Author SHA1 Message Date
Pat Cavit
5422309e96 Update name 2016-06-20 08:32:05 -07:00
Leo Horie
f5bb364b22 some credits 2016-06-20 09:57:31 -04:00
Leo Horie
459b8cf7f5 fix typo in header 2016-06-20 09:39:41 -04:00
Leo Horie
f652c25a54 fix typo 2016-06-20 09:39:05 -04:00
Leo Horie
bce2abbffd Merge remote-tracking branch 'origin/rewrite' into rewrite
Conflicts:
	docs/keys.md
	docs/signatures.md
	docs/v1.x-migration.md
	index.js
	ospec/bin/ospec.cmd
	request/request.js
	request/tests/test-xhr.js
	util/prop.js
	util/tests/index.html
	util/tests/test-prop.js
2016-06-20 09:34:14 -04:00
Leo Horie
5e3e984152 request docs wip 2016-06-20 09:22:52 -04:00
Leo Horie
ce0c30a235 update docs 2016-06-20 09:22:00 -04:00
impinball
b4fb21475c Add editorconfig, resolve differences
This includes newlines, tabs, among other things.
2016-06-18 03:22:12 -04:00
Deon Tan
6ffeeaa19d Update mithril.md
Should component be MyComponent?
2016-06-17 16:13:02 +01:00
Sebastian Sandqvist
80d0a69dab Add migration docs for m.route.prefix (#1104)
Also made a change in the documentation around passing components to `m()`. Before, the syntax that was used made it look like jsx, which could easily have been misinterpreted. Since `component` is defined in the docs just prior, I don't think we need any special syntax to indicate that it might have been a placeholder value.
2016-06-11 11:45:55 -07:00
Leo Horie
4b6c4254ba s/shouldUpdate/onbeforeupdate 2016-06-06 09:59:35 -04:00
Leo Horie
9f91858843 Merge remote-tracking branch 'origin/next' into next 2016-06-06 09:22:20 -04:00
Syaiful Bahri
52b0918297 update integration docs
correct the code example to avoid infinite loop

the infinite loop occure because the code example also
update the value on change handler. issue #954.
prove https://jsfiddle.net/syaiful6/kps3gabo/
2016-06-05 12:02:55 +07:00
Leo Horie
2289061f90 fix doc 2016-06-03 16:53:24 -04:00
Pat Cavit
d05b155abc Add more docs around m.route (#1089) 2016-06-03 11:33:46 -07:00
An Cao
aa77da2700 Fix typo in Component arguments v0.2.x 2016-05-31 09:02:49 +03:00
Demian Ferreiro
20dfbbadc6 Update mithril.request.md
Add call to promise returned by m.request(). Otherwise the value of `ctrl.user` will always be truthy.
2016-05-27 11:08:47 -03:00
Pat Cavit
ada711ec8e More migration details (#1077) 2016-05-26 15:28:18 -07:00
Leo Horie
7e98ad6d74 fix shouldUpdate docs 2016-05-26 15:26:04 -04:00
Leo Horie
261b28ad96 Merge remote-tracking branch 'origin/rewrite' into rewrite 2016-05-26 15:23:22 -04:00
Leo Horie
0ed3d20c4c documentation fixes 2016-05-26 15:21:30 -04:00
Leo Horie
0ad6749f87 callbackName 2016-05-26 11:19:39 -04:00
Pat Cavit
6a233cd03c Add more migration notes (#1075) 2016-05-25 23:06:52 -07:00
Stephan Hoyer
578ff6d970 Adding how you could access the DOM element in the new lifecycle methods 2016-05-25 23:30:49 +02:00
Pat Cavit
fa34941cee Starting on a migration guide
I'm sure there's other pieces I'm forgetting
2016-05-25 10:27:28 -07:00
Leo Horie
e35fc79f09 mroe docs 2016-05-25 02:01:27 -04:00
Leo Horie
5815a590a8 test empty object 2016-05-24 23:18:11 -04:00
Richard Ivan
63d67e1d71 typo
typo
2016-05-24 16:44:50 +02:00
AlonsoSoto
51e553f980 Update mithril.request.md 2016-05-20 14:36:20 -05:00
Leo Horie
e24e4e9a1a style fixes in docs 2016-05-19 01:46:46 -04:00
Leo Horie
cd8b8b12e6 Some documentation 2016-05-19 01:22:01 -04:00
Alexandr Panchenko
4e8ca4035c ContactList → ContactForm 2016-05-17 17:50:47 +03:00
Demian Ferreiro
577808c6df Add <body> tag to Getting Started guide
This makes the code on the Summary section a working single-file application.

Without the <body> tag the code failed with "Error: Please ensure the DOM element exists before rendering a template into it" because the <script> containing the application was inserted and run on the <head>, before `document.body` is created.
2016-04-21 12:36:45 -03:00
Leo Horie
07424db3ce Merge pull request #1023 from tivac/mount-body
[docs] mount to document.body instead
2016-04-21 09:58:12 -04:00
Pat Cavit
9ec3383c29 Mount to document.body
As brought up in #1019, mounting to the `document` can be problematic. Better to show mounting to `document.body` where things are a bit more straightforward.
2016-04-20 23:48:51 -07:00
Leo Horie
13fdb60f66 clean slate 2016-04-20 20:01:04 -04:00
Leo Horie
5d2b6ea2b7 v0.2.4 2016-04-20 00:45:42 -04:00
Ryan Whitmire
ad0fc7ed60 fix broken link in mithril.deps.md 2016-03-17 22:42:21 -04:00
Leo Horie
4b97b94f38 fix change log styling 2016-03-02 16:22:00 -05:00
Leo Horie
501e380825 v0.2.3 2016-03-02 16:10:51 -05:00
Leo Horie
5f804460fe Merge pull request #958 from barneycarroll/patch-1
"Currently active component" is unhelpful at best, misleading at worst
2016-02-10 12:07:01 -05:00
Leo Horie
42d756ea74 change link to Arthur Clemens' template compiler 2016-02-08 10:28:51 -05:00
Barney Carroll
6e60ed5720 "Currently active component" is ambiguous at best
It seems this condition is put here to reassure users that redrawing in a given route state will not draw the views of components for other routes, but it's difficult to imagine how somebody might worry that might happen.

As it is, people end up believing that redraw acts per-component, which is highly misleading in a situation where there are nested components or multiple mount points, and the call to redraw is invoked within one of those components.
2016-02-07 19:20:31 +00:00
Leo Horie
56a51664b7 Merge branch 'next' of github.com:lhorie/mithril.js into next 2016-02-05 12:19:41 -05:00
Leo Horie
741e588f4d don't render undefined classes 2016-02-05 12:19:28 -05:00
Scott Kelly
55b29d2bef Fixes typo in component.md 2016-02-03 21:54:49 -06:00
Chad Whitacre
ef5ed9d70c fix typo: contoller → controller 2016-01-26 17:44:07 -05:00
Luis Felipe Souza
e083aaac9e Issue #938 Fixing typo 2016-01-22 14:21:41 -02:00
impinball
b218f5156f Reapply docs fix 2016-01-22 08:20:26 -05:00
Isiah Meadows
a8eb0fb082 Revert "Fix docs error" 2016-01-22 08:18:19 -05:00