Commit graph

520 commits

Author SHA1 Message Date
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
Pierre-Yves Gerardy
5e78b320ec Add a main script in package.json. 2014-08-03 17:09:57 +02:00
Leo Horie
13967ad808 rethrow errors from other contexts 2014-08-02 21:30:15 -04:00
Leo Horie
da0383cad3 Merge branch 'master' into next
Conflicts:
	tests/mithril-tests.js
2014-08-02 16:09:45 -04:00
Leo Horie
6b344003e8 fix array type checks 2014-08-02 16:08:34 -04:00
Leo Horie
36eba7eb44 Merge pull request #177 from mambocab/saucelabs-tests
adds saucelabs integration to unit tests
2014-07-30 09:27:28 -04:00
Jim Witschey
21d6351136 Merge branch 'saucelabs-test-fix' into saucelabs-tests
Conflicts:
	Gruntfile.js
	package.json
	tests/mithril-tests.js
	tests/test.js
2014-07-28 14:13:46 -04:00
Jim Witschey
3160e696df fixes non-browser-based tests 2014-07-28 14:06:14 -04:00
Jim Witschey
6a1ab4e39f adds saucelabs integration to unit tests 2014-07-25 13:35:29 -04:00
Jim Witschey
4d41c087b0 adds saucelabs integration to unit tests 2014-07-25 11:23:47 -04:00
Leo Horie
9a00707eeb fix console.log higher-order calls in docs 2014-07-22 16:39:35 -04:00
Leo Horie
d3c9a28c25 fix console.log calling for non-firebug environments 2014-07-22 16:25:36 -04:00
Zolmeister
54474f5aef nearly Promises/A+ compliant via Promiz.mithril.js 2014-07-22 01:56:07 -07:00
Leo Horie
e66bc8ca54 externs for closure compiler 2014-07-21 22:48:24 -04:00
Leo Horie
c8e0d917f7 publish 0.1.19 2014-07-21 22:35:08 -04:00
Leo Horie
665c2089a4 fix docs 2014-07-21 22:16:48 -04:00
Leo Horie
7295b6e9e9 refactor redraw 2014-07-21 22:08:37 -04:00
Leo Horie
0f5d051d4b prevent setting NodeList length 2014-07-18 20:14:38 -04:00
Leo Horie
3806d2f53d refactor array flattening into diff engine 2014-07-15 23:26:26 -04:00
Leo Horie
2b304fbabc update change log 2014-07-11 23:11:45 -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
8ff54ccbfd document previous fix in change log 2014-07-10 08:53:35 -04:00
Leo Horie
eda32fef47 fix node insertion bug when using document as root 2014-07-10 08:51:31 -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
422ff19d18 clean up 2014-07-05 16:54:44 -04:00
Leo Horie
18593e698a version bump 2014-07-04 23:22:16 -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
dd9d9c1da8 fix class/className concat bug when they're defined in both selector and attrs 2014-07-04 22:47:10 -04:00
Leo Horie
4163b11fde publish v0.1.18 2014-07-03 22:32:44 -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
07c4e0bdd2 update docs for component 2014-07-02 09:31:36 -04:00
Leo Horie
f564844bb9 remove minified stuff from component 2014-07-02 09:24:40 -04:00
Leo Horie
ff741cd332 publish 0.1.17 2014-07-01 22:37:34 -04:00
Leo Horie
d44176c888 re-render from scratch on route changes 2014-07-01 22:26:12 -04:00
Leo Horie
170d525aa5 fix empty attr 2014-06-30 22:28:41 -04:00
Leo Horie
c8ec1022f2 don't use minified file as main file in component.js 2014-06-27 16:42:42 -04:00
Leo Horie
7a32c0ea89 beef up readme and make blog more prominent 2014-06-27 16:07:42 -04:00
Leo Horie
5aeb825ce0 add docs about keys 2014-06-27 16:02:56 -04:00
Leo Horie
474dd28e50 document change 2014-06-26 16:35:35 -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
6bca818f34 fix select.value so that it displays correct option on first render 2014-06-26 07:27:42 -04:00
Leo Horie
661307c02e fix subtree directive bug that made first input copy value of current active one, if inside loop 2014-06-26 07:16:19 -04:00