Commit graph

2903 commits

Author SHA1 Message Date
Leo Horie
9afefe0fd7 don't swallow redraws 2016-06-30 23:46:47 -04:00
Leo Horie
88b91b1073 ospec: display brackets in errors about arrays 2016-06-30 23:39:22 -04:00
Leo Horie
4ad4fdf75c add missing space 2016-06-30 23:38:52 -04:00
Leo Horie
b848655d8b Merge pull request #1131 from 2is10/route
Fixing m.route() after a canceled navigation (#1126)
2016-06-30 08:32:16 -04:00
Jared Jacobs
e9e2a45caa Fixing m.route() after a canceled navigation (#1126) 2016-06-29 22:48:45 -07:00
Leo Horie
015a812610 fantasy-land methods no longer absorb streams 2016-06-30 01:28:50 -04:00
Leo Horie
2173d8c0e3 Merge pull request #1129 from 2is10/contributing
Updating the links to known failing tests (now just one)
2016-06-29 18:45:18 -04:00
Jared Jacobs
d59341ed06 Updating the links to known failing tests (now just one) 2016-06-29 15:34:41 -07:00
Leo Horie
7fa3fee9ce improve docs for m.request 2016-06-24 23:41:35 -04:00
Leo Horie
36e6894859 extend rejection reason w/ json error on request error 2016-06-24 21:40:11 -04:00
Leo Horie
6e3ce0aeb5 rebuild 2016-06-24 16:02:01 -04:00
Leo Horie
794d32d7d1 initialValue arg 2016-06-24 15:58:30 -04:00
darda
753944efe8 Push route to history stack, when using parameters
Bugfix for issue #1124
The condition has been changed, which is deciding to push the a route to history stack.
I think, it is necessary to compare the old route with the current route, instead of old route with root (without parameters).
2016-06-23 08:49:18 +02:00
Leo Horie
c4c916b1d2 Merge remote-tracking branch 'origin/rewrite' into rewrite 2016-06-23 01:10:49 -04:00
Leo Horie
89492a4956 modularize bundler and minify scripts 2016-06-23 01:10:30 -04:00
Isiah Meadows
9288a915a4 Merge pull request #1121 from barneycarroll/patch-3
Long-term Node fans might take exception (lol)...
2016-06-22 14:22:58 -04:00
Leo Horie
e1be5e8368 Merge pull request #1122 from porsager/patch-1
Correct descriptions for map in table
2016-06-21 15:23:23 -04:00
Rasmus Porsager
bbeeb75087 Correct descriptions for map in table
Seems like some copy paste slipped through ;)
2016-06-21 20:29:28 +02:00
Barney Carroll
af49a7dcb4 Long-term Node fans might take exception (lol)...
...to saying there aren't *any* mechanisms for error-handling in callback-centric async APIs
2016-06-21 10:09:59 +01:00
Leo Horie
639967c767 lint docs 2016-06-20 23:35:43 -04:00
Leo Horie
92d9e93ee1 let bundler resolve npm deps 2016-06-20 23:08:43 -04:00
Leo Horie
93a9e5a2f8 rebuild 2016-06-20 23:08:27 -04:00
Leo Horie
816363eebf Merge remote-tracking branch 'origin/rewrite' into rewrite 2016-06-20 22:25:58 -04:00
Leo Horie
a875f7e162 ensure upstream does not affect ended stream 2016-06-20 22:25:43 -04:00
Leo Horie
0a301df16a Merge pull request #1120 from pygy/patch-1
Remove the injection of `Stream` into `requestService`
2016-06-20 12:51:10 -04:00
Pierre-Yves Gérardy
05c8c411ad Remove the injection of Stream into requestService
I guess the leftovers of a previous version...
2016-06-20 18:37:17 +02:00
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
015f127563 Merge pull request #1119 from futurist/next
FIX: ES3 props keyword bug in IE8; eslint errors
2016-06-20 09:50:10 -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
a1fbe16b55 ospec fixes 2016-06-20 09:22:15 -04:00
Leo Horie
ce0c30a235 update docs 2016-06-20 09:22:00 -04:00
Leo Horie
b9ce90765d streams implementation 2016-06-20 09:21:25 -04:00
Leo Horie
94a8be4fca versioning script 2016-06-20 09:19:43 -04:00
Leo Horie
8594ed3ef1 lintdocs and minify scripts 2016-06-20 09:19:30 -04:00
1111hui
2c3d3e5df0 cleanup and apply editorconfig 2016-06-20 16:15:59 +08:00
1111hui
8550501fb2 FIX: ES3 props keyword bug in IE8; eslint errors 2016-06-20 15:41:50 +08:00
Isiah Meadows
0294293f82 Merge pull request #1117 from epidemian/remove-peristent-unloaders
Remove unloaders when root element is removed
2016-06-18 15:35:18 -04:00
Demian Ferreiro
3e51c8c2ff Remove unloaders when root element is removed
When a controller calls preventDefault on its onunload method, it prevents the current root element from being unmounted via a route change. But it does not prevent it from being unmounted via m.mount(root, null). In that case, the root element is unmounted, but any unloaders that it had keep hanging on the `unloaders` array, and that prevented any future m.mount(root, component) calls from succeeding. This is what was happening on the pending route() tests.

The fix is pretty simple: just reset the `unloaders` array when removing the root element, just like it's done when no unloader calls preventDefault.

Also, 2 of the 4 pending tests were removed because they were identical to the other 2.
2016-06-18 07:41:49 -03:00
Isiah Meadows
02cc4ec1d6 Fix whitespace/etc. in examples (#1115) 2016-06-18 03:39:55 -04:00
Isiah Meadows
8d4db4bfa9 Merge pull request #1114 from isiahmeadows/editorconfig
Add an editorconfig to the rewrite
2016-06-18 03:28:02 -04:00
impinball
b4fb21475c Add editorconfig, resolve differences
This includes newlines, tabs, among other things.
2016-06-18 03:22:12 -04:00
Pat Cavit
73dbc149b5 Merge pull request #1111 from djtango/patch-1
Update mithril.md
2016-06-17 09:10:12 -07:00
Deon Tan
6ffeeaa19d Update mithril.md
Should component be MyComponent?
2016-06-17 16:13:02 +01:00
Isiah Meadows
5cff2945b2 Merge pull request #1110 from isiahmeadows/next
Add definition file to npm
2016-06-17 06:14:55 -04:00
impinball
cb10456bbe Add definition file to npm [ci skip] 2016-06-17 06:09:04 -04:00
Leo Horie
c55917d21a Merge pull request #1106 from epidemian/fix-1091
Fix #1091 Value on select tag not set when options are changed
2016-06-13 11:13:32 -04:00