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
Sebastian
d10d77288c
Added support for trailing slashes in routes
...
m.route now matches a path with a trailing slash against a route without one.
2014-05-22 14:41:21 +02:00
Leo Horie
7e73004b28
add test for double removal
2014-05-21 23:07:48 -04:00
Leo Horie
e332ffe473
make m.request exception follow promise resolution procedure
2014-05-20 22:53:30 -04:00
Leo Horie
46565f2e03
allow resolving w/ no value
2014-05-18 19:47:46 -04:00
Leo Horie
7f35cf31f2
prevent re-resolving
2014-05-12 13:21:46 -04:00
Leo Horie
92f85fa9ea
handle resolved/rejected promise
2014-05-11 23:20:51 -04:00
Leo Horie
b23ffd1aee
add support for controller.prototype.onunload
2014-05-11 22:20:47 -04:00
Leo Horie
63a7461657
fix diff of css rule removal
2014-05-09 22:21:43 -04:00
Leo Horie
a80621e3a6
fix url decoding in route args
2014-05-07 23:09:27 -04:00
Leo Horie
3bccf4d2ef
add tests for variadic route
2014-05-07 10:27:45 -04:00
Leo Horie
deeb73973f
fix datalist and link redraw
2014-05-06 22:26:30 -04:00
Leo Horie
dc379a4cf8
added test to prevent releases w/ console.log
2014-05-03 08:20:30 -04:00
Leo Horie
3433cabf88
fix cloning when undefined present in tree
2014-05-02 22:20:51 -04:00
Leo Horie
42a33b074c
fix contenteditable diffing
2014-05-01 22:32:10 -04:00
Leo Horie
913b8a5579
fix opening in new tab for routed links
2014-05-01 21:31:56 -04:00
Leo Horie
91a32af76c
add ability to run requests in background
2014-04-29 23:14:09 -04:00
Leo Horie
6fb1071236
add unit test for m.route() overload
2014-04-28 22:41:04 -04:00
Leo Horie
22deb93d04
fix input cursor bug in chrome
2014-04-25 13:51:17 -04:00
Leo Horie
a425bbca88
fix node index displacement by null/undefined nodes
2014-04-20 21:48:33 -04:00
Leo Horie
cb6994dd93
make getter-setters json-serializable
2014-04-19 22:22:02 -04:00
Leo Horie
8b6c2c381a
Merge pull request #54 from thatsmydoing/master
...
Allow m.prop to be JSON.stringify-ed
2014-04-19 18:20:29 -04:00
Leo Horie
d57a145daa
version bump
...
multi-island support
typos
react comparison in home
make id change force element recreation
2014-04-19 17:56:08 -04:00
Thomas Dy
95affb1cb2
Allow m.prop to be JSON.stringify-ed
2014-04-19 10:39:01 +08:00
Leo Horie
e65db40116
fix ordering issue in subchilds
2014-04-14 11:06:41 -04:00
Leo Horie
8fd5069439
fix ordering issue where previous sibling is array
2014-04-13 22:32:56 -04:00
Leo Horie
e5f0d7cebb
add more tests for #49
2014-04-13 16:21:07 -04:00
Leo Horie
7fbfe2c3ca
document test
2014-04-13 13:58:59 -04:00
Leo Horie
f768b7bb63
fix text node reattachment when parent changes but node value does not
2014-04-13 11:10:25 -04:00
Leo Horie
70496946cf
fix ordering bug when mixing arrays with virtual elements
2014-04-11 15:23:22 -04:00
Leo Horie
5c9f9d782f
add docs for SVG, and better tests
2014-04-10 21:36:09 -04:00
Leo Horie
1aef5dd942
Merge branch 'next' into svg
...
Conflicts:
archive/v0.1.2/mithril-tests.js
archive/v0.1.2/mithril.min.js
archive/v0.1.2/mithril.min.map
archive/v0.1.2/mithril.min.zip
mithril.js
tests/mithril-tests.js
2014-04-09 16:48:07 -04:00
Leo Horie
3eb4bfc6a6
add test for textnode->element and element->textnode
2014-04-09 09:18:59 -04:00
Leo Horie
b972607c8d
fix out-of-order issue when mixing new and old elements
2014-04-09 09:12:14 -04:00
Leo Horie
1ed7fa5b30
add test for issue 29
2014-04-08 22:17:19 -04:00
Leo Horie
d684b0fceb
fix disappearing link text
2014-04-08 21:33:00 -04:00
Leo Horie
b2daa1b55a
fix port in POST request urls
2014-04-08 15:03:20 -04:00
Leo Horie
5eef004bbb
unminified files for maps
2014-04-08 09:51:16 -04:00
Leo Horie
bdd016de3f
community link
2014-04-06 20:24:23 -04:00
Leo Horie
751cc683dd
fix test
2014-04-06 15:27:37 -04:00
Leo Horie
fcf77dfa44
add {subtree: "retain"} flag to allow skipping diff from app space
2014-04-06 15:20:21 -04:00
Leo Horie
5ecc942abd
unwrap thennable
2014-04-05 21:16:49 -04:00
Leo Horie
49dffe7e0e
make sure element is child of correct parent if child is recycled but parent is not
2014-04-01 14:40:02 -04:00
Leo Horie
48025dd16a
add experimental svg support
...
- supports nested svg elements
- supports svg attributes
- supports xlink
2014-03-26 23:05:14 -04:00