Commit graph

2664 commits

Author SHA1 Message Date
Leo Horie
2f562505c3 Merge pull request #1081 from virtyaluk/patch-1
Fixes js.org badge link.
2016-05-31 10:01:07 -04:00
An Cao
aa77da2700 Fix typo in Component arguments v0.2.x 2016-05-31 09:02:49 +03:00
Bohdan Shtepan
3f4df52d6e Fixes js.org badge link.
I believe js.org badge goes to the wrong location. So I changed it from *js.org* to *mithril.js.org/*.
2016-05-30 20:54:18 +03:00
Leo Horie
87df83f21b Merge pull request #1079 from pygy/routePatch
Support non-root base path
2016-05-29 20:38:15 -04:00
Pierre-Yves Gerardy
297e343264 Support non-root base path 2016-05-30 00:07:52 +02:00
Leo Horie
3bb0a6287f promise bug fixes (work in progress) 2016-05-28 01:12:20 -04:00
Leo Horie
129e0baf43 Merge pull request #1078 from epidemian/patch-2
Update mithril.request.md
2016-05-27 10:28:35 -04: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
Leo Horie
3c9ec0d2d6 Merge remote-tracking branch 'origin/rewrite' into rewrite 2016-05-27 08:17:54 -04:00
Leo Horie
8e95ecc741 fix typo 2016-05-27 08:17:37 -04: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
76d5d9ef2f promise polyfill 2016-05-26 15:23:06 -04:00
Leo Horie
41ac2bf002 rename ajaxt o xhr, expose jsonp 2016-05-26 15:22:36 -04:00
Leo Horie
0ed3d20c4c documentation fixes 2016-05-26 15:21:30 -04:00
Leo Horie
b128fd8232 don't shortcircuit promise check for objects 2016-05-26 11:45:48 -04:00
Leo Horie
ce748f9f71 check for existence of Promise before doing check against it 2016-05-26 11:30:27 -04:00
Leo Horie
0ad6749f87 callbackName 2016-05-26 11:19:39 -04:00
Leo Horie
bdd65b3b86 Merge remote-tracking branch 'origin/next' into next 2016-05-26 11:04:51 -04:00
Leo Horie
bf85b7a530 #1076 absorb native promise in m.prop 2016-05-26 11:04:04 -04:00
Pat Cavit
6a233cd03c Add more migration notes (#1075) 2016-05-25 23:06:52 -07:00
Leo Horie
7e437f27a8 Merge pull request #1074 from StephanHoyer/patch-3
Adding how you could access the DOM element in the new lifecycle methods
2016-05-25 17:42:07 -04: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
Leo Horie
9a66495799 Merge pull request #1073 from tivac/migration-guide
Starting on a migration guide
2016-05-25 13:36:22 -04: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
Piotr Husiatyński
c71e8f4fcb JSON.stringify(m.prop(x)) use x.toJSON method when possible
When JSON serializing m.prop, check if wrapped object does define toJSON method
and if so, return it's result.
2016-05-25 11:12:36 +02: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
Leo Horie
eb25faf8af Merge branch 'rewrite' of github.com:lhorie/mithril.js into rewrite 2016-05-24 23:16:53 -04:00
Leo Horie
e7420e72e1 more tests 2016-05-24 23:16:43 -04:00
Leo Horie
920851e3ab Merge pull request #1067 from RichardIvan/patch-2
Typo in component.md
2016-05-24 10:53:28 -04:00
Richard Ivan
63d67e1d71 typo
typo
2016-05-24 16:44:50 +02:00
Leo Horie
a2c01d1d96 prop and withAttr tests 2016-05-21 09:49:05 -04:00
Leo Horie
477e73f300 prop and withAttr work in progress 2016-05-21 01:48:11 -04:00
Leo Horie
e1473dcce8 fiddling w/ bundled var names 2016-05-21 01:20:54 -04:00
Leo Horie
6400b616fc make renderer optional in autoredraw module 2016-05-21 01:14:59 -04:00
Leo Horie
9b602edf4e create only one renderer 2016-05-21 00:59:33 -04:00
Leo Horie
749b952392 clean up index.js 2016-05-21 00:48:58 -04:00
Leo Horie
0005cf26ee refactor redraw into pubsub and autoredraw
- pubsub is a basic pubsub impl
- autoredraw is glue code to register callback to pubsub and onevent

moved e.redraw to autoredraw
2016-05-21 00:37:34 -04:00
Leo Horie
db46bb4414 update bundler readme 2016-05-20 22:55:41 -04:00
Leo Horie
4e65357242 node doesn't like floating point numbers as setTimeout arg 2016-05-20 22:55:21 -04:00
Leo Horie
b1e8f61c87 fix tests after merge conflict 2016-05-20 22:50:52 -04:00
Leo Horie
acd9d5b641 Merge branch 'bundler-fix' into rewrite
Conflicts:
	api/mount.js
	api/router.js
	api/tests/test-router.js
	index.js
2016-05-20 22:45:51 -04:00
Leo Horie
10daf1e630 Merge pull request #1064 from tivac/redraw-mounts
[rewrite] Add m.redraw() support for multiple mount points
2016-05-20 22:38:21 -04:00
Leo Horie
e5391a1957 bundler variable disambiguation 2016-05-20 22:38:10 -04:00
Pat Cavit
71c77ba603 Add m.redraw() support for multiple mount points
To better match `0.2.x` behavior: https://jsfiddle.net/xbpyqL9k/
2016-05-20 15:27:17 -07:00
Leo Horie
42b21a5950 Merge pull request #1063 from il-juggler/patch-1
Update mithril.request.md
2016-05-20 18:12:51 -04:00
AlonsoSoto
51e553f980 Update mithril.request.md 2016-05-20 14:36:20 -05:00
Pat Cavit
058b25002d Linebreaks are hard, spacing isn't (#1062)
Because linebreaks are affected by git's `core.autocrlf` rule and I don't feel like adding a `.gitattributes` file yet.
2016-05-20 11:51:30 -07:00