Commit graph

820 commits

Author SHA1 Message Date
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