Commit graph

50 commits

Author SHA1 Message Date
Leo Horie
deeb73973f fix datalist and link redraw 2014-05-06 22:26:30 -04:00
Leo Horie
4046c07639 fix route path for non-root pages 2014-05-05 15:18:51 -04:00
Leo Horie
dc379a4cf8 added test to prevent releases w/ console.log 2014-05-03 08:20:30 -04:00
Leo Horie
9794c534eb remove log 2014-05-03 08:09:45 -04:00
Leo Horie
3433cabf88 fix cloning when undefined present in tree 2014-05-02 22:20:51 -04:00
Leo Horie
f28ae323c5 use reverse loop with deletions 2014-05-01 22:39:52 -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
f4a248f0a5 fix abort so that it works without custom extract option 2014-04-29 22:20:19 -04:00
Leo Horie
38dba03f6d make xhr.abort reject promise chain 2014-04-29 22:19:07 -04:00
Leo Horie
ab434fbc15 add m.route() overload to retrieve current route 2014-04-28 22:30:40 -04:00
Leo Horie
22deb93d04 fix input cursor bug in chrome 2014-04-25 13:51:17 -04:00
Sander Hahn
1d63e0f043 only update input.value on change 2014-04-22 11:12:55 +02:00
Leo Horie
a425bbca88 fix node index displacement by null/undefined nodes 2014-04-20 21:48:33 -04:00
Leo Horie
bb54a3b675 add extract option to m.request 2014-04-19 22:47:03 -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
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
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
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
9dcffab2ac don't touch DOM to check for parenthood 2014-04-08 15:48:15 -04:00
Leo Horie
b2daa1b55a fix port in POST request urls 2014-04-08 15:03:20 -04:00
Levi Tan Ong
86280e8261 Changes regex for parametrizeUrl to catch tokens that start with letters only, to allow for urls with ports 2014-04-08 23:49:42 +08: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
efae454bd4 improve dom caching
- don't call appendChild if not needed
- don't overwrite style all the time
- don't overwrite function if it has same source
2014-04-03 09:00:47 -04:00
Leo Horie
26ee6975a0 don't assume document if no root element 2014-04-02 15:24:21 -04:00
Leo Horie
34482a0b0f Merge branch 'commonjs'
Conflicts:
	archive/v0.1.2/mithril.min.js
	archive/v0.1.2/mithril.min.map
	archive/v0.1.2/mithril.min.zip
2014-04-01 22:22:31 -04:00
Leo Horie
9059101ddc Merge branch 'fix/29' into next
Conflicts:
	archive/v0.1.2/mithril.min.js
	archive/v0.1.2/mithril.min.map
	archive/v0.1.2/mithril.min.zip
2014-04-01 17:02:28 -04:00
Leo Horie
bde67fa895 use less expensive check for attribute diff qualification 2014-04-01 16:45:02 -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
86ba3474a6 add tentative fix for #29
https://github.com/lhorie/mithril.js/issues/29

TODO: test cost of relying on native equality checks
2014-03-30 22:33:49 -04:00
Leo Horie
62eae50b20 invalidate dom cache on new module 2014-03-30 14:36:16 -04:00
Leo Horie
78c422448a make commonjs api work with non-global module, expose amd api 2014-03-30 14:17:40 -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
Leo Horie
d258b9687b expose to commonjs 2014-03-25 22:23:14 -04:00
Leo Horie
77d5484169 fix handling of errors in promises 2014-03-21 23:20:47 -04:00
Leo Horie
ca6f3207b5 don't handle non-virtual-element objects 2014-03-20 15:41:50 -04:00
Leo Horie
a7a9447cd6 fixing null reference when passing undefined to virtual dom tree 2014-03-20 15:36:52 -04:00
Leo Horie
83f497e129 reset m.route.param correctly on route change 2014-03-20 11:18:40 -04:00
Leo Horie
4cc123e01d change xhr.withCredentials to be false by default 2014-03-20 11:07:10 -04:00
Leo Horie
70b2489539 initial release 2014-03-16 22:07:53 -04:00