Commit graph

102 commits

Author SHA1 Message Date
Jim Witschey
6a1ab4e39f adds saucelabs integration to unit tests 2014-07-25 13:35:29 -04:00
Leo Horie
7295b6e9e9 refactor redraw 2014-07-21 22:08:37 -04:00
Leo Horie
c8ce0d8dee fix key ordering in interpolation case 2014-07-11 23:09:25 -04:00
Leo Horie
1e829f1657 normalize arrays 2014-07-11 22:36:58 -04:00
Leo Horie
ccde633e92 fix double redraw when events fire simultaneously 2014-07-10 08:23:42 -04:00
Leo Horie
0354a4e251 fix diff when changing from element to empty array 2014-07-06 22:36:49 -04:00
Leo Horie
8fc5764904 allow mixing keys with non-keyed elements 2014-07-04 23:21:08 -04:00
Leo Horie
9554995a1d test class name fix 2014-07-04 22:51:49 -04:00
Leo Horie
44a7ad7729 fix context unloading when reattaching 2014-07-03 22:31:04 -04:00
Leo Horie
b1275cb778 clear diff cache when routing 2014-07-03 22:11:29 -04:00
Leo Horie
d44176c888 re-render from scratch on route changes 2014-07-01 22:26:12 -04:00
Leo Horie
f46b8c9238 auto-send Content-Type header if using JSON.stringify as serialize in m.request 2014-06-26 16:32:05 -04:00
Leo Horie
42f21181f8 add context unload event listener 2014-06-25 22:45:21 -04:00
Leo Horie
81f3367be9 scroll to top on route 2014-06-18 06:46:50 -04:00
Leo Horie
4aad8619c5 fix m.trust diffing 2014-06-18 06:42:48 -04:00
Leo Horie
bc50514731 fix parent tag association across array 2014-06-17 22:49:07 -04:00
Leo Horie
0d44df0683 fix wrongful cache node clearing 2014-06-17 22:40:07 -04:00
Leo Horie
53672e62d7 implement keys 2014-06-13 23:33:02 -04:00
Leo Horie
4cbc768aa7 test for #129 2014-06-09 16:39:29 -04:00
Leo Horie
8bba1dc9d9 scope config stack to m.render call 2014-06-06 18:23:20 -04:00
Leo Horie
e82ac2ef71 defer calling of configs until DOM exists 2014-06-05 21:54:51 -04:00
Leo Horie
2d8db79cef fix test 2014-06-04 09:22:49 -04:00
Leo Horie
4020933780 Merge remote-tracking branch 'origin/next' into next
Conflicts:
	mithril.js
	tests/e2e/tests.js
2014-06-03 23:27:19 -04:00
Leo Horie
ff2cb55a04 add config context 2014-06-03 23:26:04 -04:00
Leo Horie
f7240e0ce5 Merge pull request #119 from pistolero/config_context
Added context for config handlers
2014-06-03 22:46:39 -04:00
Leo Horie
4d04ce034d fix diff on nested arrays 2014-06-03 22:42:14 -04:00
Leo Horie
1d2ba8b0b0 prevent route change event if only hash changes 2014-06-01 22:09:37 -04:00
Sergey Kirillov
af2fdc0421 Fixed typo in complex config test 2014-05-31 18:51:13 +03:00
Sergey Kirillov
164e5b178c Added more tests for config context 2014-05-31 18:49:04 +03:00
Sergey Kirillov
5a2d7fdf81 Added mocked test as well 2014-05-31 13:49:24 +03:00
Sergey Kirillov
20b102b478 Added context for config handlers 2014-05-31 13:38:55 +03:00
Leo Horie
7cb6982e57 Merge pull request #105 from pistolero/e2e_tests
Added end to end test suite and test for issue #99
2014-05-29 22:10:35 -04:00
Leo Horie
9e5bd07235 add test for m.sync pr 2014-05-29 08:21:05 -04:00
Sergey Kirillov
1141af3bad Merge branch 'next' of https://github.com/lhorie/mithril.js into e2e_tests 2014-05-29 10:11:32 +03:00
Leo Horie
95d2a58abb add tests 2014-05-28 21:41:58 -04:00
Sergey Kirillov
f08abb92ec More tests 2014-05-28 23:58:56 +03:00
Sergey Kirillov
85f754cd3a Added assert messages 2014-05-28 23:54:17 +03:00
Sergey Kirillov
ed0283e7aa Fixed identation 2014-05-28 22:31:47 +03:00
Sergey Kirillov
e9e6082aae Added end to end test suite and test for issue #99 2014-05-28 22:23:18 +03:00
Leo Horie
b9cdd940bc ensure http errors reject promises 2014-05-26 21:57:09 -04:00
Leo Horie
e1090c9c90 Merge pull request #93 from yolk/spaces
Removed trailing spaces
2014-05-25 23:51:47 -04:00
Sebastian
682485f22b Simplified version of parseQueryString: no nested objets anymore 2014-05-25 23:50:13 +02:00
Sebastian
3df5578e7b Removed trailing spaces 2014-05-25 23:19:52 +02:00
Leo Horie
d4cb7959d4 Merge pull request #91 from pistolero/master
Added support for overriding xml namespace.
2014-05-25 15:15:35 -04:00
Leo Horie
1f75f71b22 add support for route query string 2014-05-25 11:19:12 -04:00
Leo Horie
80379bcd1b Merge branch 'route-query-string' of github.com:yolk/mithril.js into yolk-route-query-string
Conflicts:
	tests/mithril-tests.js
2014-05-24 20:11:34 -04:00
Sergey Kirillov
9b1ccc7981 Added support for overriding xml namespace.
It was required to allow embedding HTML foreignObjects inside SVG
2014-05-24 22:30:32 +03:00
Leo Horie
c4e13384db Merge pull request #88 from yolk/route-trailing-slash
Added support for trailing slashes in routes
2014-05-24 13:30:00 -04:00
Sebastian
5b6b7de045 m.route supports params as an object, and builds querystring from it
m.route('/path', {param: 1}) => navigates to '/path?param=1'

The API is a little bit problematic, as it is not possible to combine it with `shouldReplaceHistoryEntry`.
2014-05-22 16:09:37 +02:00
Sebastian
001263080e Add query string support to m.route
m.route now parses query string in given path into m.route.param

	* Params gathered the old way (e.g. /test/:id) overwrite params from the query string
	* /?valid => m.route.param('valid') === true
	* /?blank= => in m.route.param('blank') === ''
	* Supports nested values: ?test[a][b]=1&test[a][b]=2 => m.route.param('a') == {b: "1", c: "2"}

The nested values where only added to behave similar to the encoding function querystring in mithril. Maybe this is not necessary? Code could be shorter.
2014-05-22 15:55:31 +02:00