Commit graph

365 commits

Author SHA1 Message Date
Zolmeister
5b13612e26 redraw: added strict true check 2014-08-16 12:50:46 -07:00
Zolmeister
8efa162d47 Merge remote-tracking branch 'upstream/next' into forcedraw
Conflicts:
	archive/v0.1.20/mithril-tests.js
2014-08-16 12:45:25 -07:00
Leo Horie
6fc460bd6a version bump 2014-08-15 18:35:04 -04:00
Leo Horie
9b01f09af4 fix typo 2014-08-14 21:30:00 -04:00
Leo Horie
a0e39777cd v0.1.20 2014-08-14 21:24:54 -04:00
Zolmeister
774be35cc2 added optional param to m.redraw() to allow forced update 2014-08-13 13:01:21 -07:00
Zolmeister
d567de08a8 promise props resolve to promises instead of blank prop functions 2014-08-13 01:16:03 -07:00
Zolmeister
6b62681da8 promise prop resolution 2014-08-13 00:50:35 -07:00
Zolmeister
7639444aa1 Merge branch 'next' into promises
Conflicts:
	mithril.js
2014-08-13 00:07:34 -07:00
Leo Horie
bc5085eac0 clarify key uniqueness requirement in docs 2014-08-12 18:18:38 -04:00
Leo Horie
7f62ab4954 don't throw error on comments in template converter 2014-08-12 18:01:11 -04:00
Leo Horie
c736e738ce fixing links 2014-08-12 18:00:54 -04:00
Leo Horie
2161e0ef25 update menu 2014-08-11 23:24:48 -04:00
Leo Horie
f514b5434f update change log 2014-08-11 23:16:43 -04:00
Leo Horie
4281773df9 redraw strategy 2014-08-11 23:15:53 -04:00
Leo Horie
44119f43f7 update change log about mathml 2014-08-11 21:00:32 -04:00
Leo Horie
9387820ee7 add test for #194 2014-08-11 20:59:15 -04:00
Leo Horie
b894b0ad1e update change log 2014-08-11 20:59:05 -04:00
Leo Horie
fb50e6f954 Merge branch 'next' 2014-08-11 20:54:53 -04:00
Leo Horie
e60a9542b2 fix ie8 empty-text-node-in-input issue 2014-08-11 20:54:35 -04:00
Leo Horie
60939592f7 defensive code against ultra rare bug 2014-08-10 23:18:06 -04:00
Leo Horie
0a5e7018ae mathml namespace 2014-08-10 23:04:38 -04:00
Leo Horie
42608dcf7d Merge branch 'next' 2014-08-10 23:02:14 -04:00
Leo Horie
f9ba62cc3b remove experimental api 2014-08-10 23:01:59 -04:00
Leo Horie
5bbd6c6478 comments in code 2014-08-10 22:48:37 -04:00
Leo Horie
b28dedaa73 update change log 2014-08-10 22:47:42 -04:00
Leo Horie
999fdb5c89 Merge branch 'next' 2014-08-10 21:38:06 -04:00
Leo Horie
c6242f024c Merge remote-tracking branch 'origin/master' 2014-08-10 21:38:04 -04:00
Leo Horie
b86c4cec3f fix m.sync resolution when empty array 2014-08-10 21:37:35 -04:00
Leo Horie
3fc0165c98 update docs about Function::bind requirement 2014-08-10 21:37:13 -04:00
Leo Horie
e08c626abf fix IE8 null ref 2014-08-10 21:36:52 -04:00
Leo Horie
3e7690c5fc Merge remote-tracking branch 'origin/master' into next 2014-08-08 20:38:33 -04:00
Leo Horie
4dd9303ac1 Merge pull request #186 from oleg8sh/patch-3
Don't insert blank text node into every tag (yet another IE8 issue)
2014-08-08 20:38:15 -04:00
Leo Horie
7b535f9419 add docs for nullables 2014-08-08 18:13:28 -04:00
Leo Horie
d81263f55e Merge remote-tracking branch 'origin/master' into next 2014-08-08 18:02:52 -04:00
Leo Horie
c2aa89ec55 Merge pull request #189 from oleg8sh/patch-1
undefined cached checks.
2014-08-08 18:02:32 -04:00
Leo Horie
1472036464 Merge remote-tracking branch 'origin/master' into next 2014-08-08 17:14:25 -04:00
Leo Horie
d71bac33f3 Merge pull request #190 from oleg8sh/patch-2
typeof is much faster than {}.toString()
2014-08-08 17:14:09 -04:00
oleg8sh
807c6f415a typeof is much faster than {}.toString()
Proof: http://jsperf.com/typeof-vs-instanceof-vs-object-prototype-tostring
2014-08-09 00:03:22 +04:00
oleg8sh
f643636eb3 undefined cached checks.
Part of #185. Should fix #162 & #163.
2014-08-08 23:11:45 +04:00
Leo Horie
35d299f705 Merge remote-tracking branch 'origin/master' into next 2014-08-08 12:40:31 -04:00
Leo Horie
e094292718 Merge pull request #187 from oleg8sh/patch-4
currentTarget issue in IE8
2014-08-08 12:40:11 -04:00
Leo Horie
d5270adcd7 Merge remote-tracking branch 'origin/master' into next 2014-08-08 12:37:49 -04:00
Leo Horie
6edc8acff9 Merge pull request #184 from oleg8sh/patch-1
Protection from external 'undefined'
2014-08-08 12:37:25 -04:00
oleg8sh
c0c349ef20 currentTarget issue in IE8
There is no currentTarget in IE8. So withAttr() fails in it.
But 'this' is binded to that already. It's Ok.

More info:
http://stackoverflow.com/questions/857439/internet-explorer-and-javascript-event-currenttarget
http://www.brainjar.com/dhtml/events/default3.asp
2014-08-08 02:37:06 +04:00
oleg8sh
459a38e8d9 Don't insert blank text node into every tag (yet another IE8 issue)
Actually Mithril calls build() with data undefined for m("tag",{...}) [calls without third argument].
The changing undefined to "" causes build() insert a TextNode into current tag (on line 169).
But in IE8 it isn't allowed to insert a TextNode into any tag.
For example, m("input",{...}) fails here.

With this simple patch undefined is not chaged to "" anymore.
(And no empty TextNode's added to every mentioned tag.)
2014-08-08 02:30:39 +04:00
oleg8sh
c4cd99b093 Protection from external 'undefined' 2014-08-07 23:32:25 +04:00
Leo Horie
51ec8484a6 Merge branch 'master' into next 2014-08-05 21:46:39 -04:00
Leo Horie
f85f55d3f0 Merge remote-tracking branch 'origin/master' 2014-08-05 21:46:30 -04:00
Leo Horie
0ad9a7d57c Merge pull request #182 from pygy/master
Add a main script in package.json.
2014-08-05 21:46:06 -04:00