Commit graph

263 commits

Author SHA1 Message Date
Pierre-Yves Gerardy
58cea7a283 Add a static vnode.skip field 2016-08-16 22:56:42 +02:00
Pierre-Yves Gerardy
71c20b84b8 Merge two if blocks, chomp an indentation level 2016-08-13 10:47:54 +02:00
Pierre-Yves Gerardy
905309cb17 Simplify vnode.state creation.
For components, `vnode.tag` is always an object.
2016-08-13 10:47:54 +02:00
Leo Horie
9c16ece556 don't cast to boolean 2016-08-12 23:55:45 -04:00
Leo Horie
6c3036e5c6 fix event removal in diff
fix CI
2016-08-12 22:08:02 -04:00
Leo Horie
499a9ccc6d Merge remote-tracking branch 'origin/rewrite' into rewrite 2016-08-11 19:44:43 -04:00
Leo Horie
f964252c2c test for #1216 2016-08-11 19:44:23 -04:00
Leo Horie
6da45aa871 Merge pull request #1209 from pygy/fix-is
`is` should be passed as `{is: is}`
2016-08-11 12:14:32 -04:00
Gaspar
f0082473f9 Update style using element.style.cssText instead of element.cssText 2016-08-11 12:32:06 +02:00
Leo Horie
dca217f379 Merge remote-tracking branch 'origin/rewrite' into rewrite
Conflicts:
	mithril.min.js
2016-08-11 00:32:01 -04:00
Leo Horie
9d38c12630 don't move element if not needed 2016-08-11 00:28:03 -04:00
suren shrestha
b2189a524f proper selector check (#1231) 2016-08-10 13:56:58 -07:00
Pierre-Yves Gerardy
b6bb63ff85 Skip diff for cached, non-keyed nodes fix #1206 2016-08-06 00:10:54 +02:00
Pat Cavit
4b340ecd75 Clean up test for #1222 a bit (#1223)
Since @lhorie asked nicely.
2016-08-05 14:49:16 -07:00
Pat Cavit
c92e24b7e1 render clears non-mithril dom nodes 2016-08-05 14:15:25 -07:00
Gilbert
b0848070bc Overwrite an element's style using cssText
This is the proper way to do it:
https://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSStyleDeclaration-cssText
2016-08-05 00:49:26 -05:00
Pierre-Yves Gerardy
d71dcc5e94 is should be passed as {is: is} 2016-08-04 03:45:44 +02:00
Leo Horie
20da8d3dc8 remove redundant check 2016-08-02 10:43:50 -04:00
Leo Horie
f4b267ff39 don't duplicate html on updates 2016-07-30 15:46:14 -04:00
Leo Horie
a548290dda Merge remote-tracking branch 'origin/rewrite' into rewrite 2016-07-29 22:04:20 -04:00
Leo Horie
7c736b511a rename node to vnode 2016-07-29 22:04:04 -04:00
Pierre-Yves Gerardy
bfc69267d5 Remove a few crumbs I left behind 2016-07-29 20:31:06 +02:00
Pierre-Yves Gerardy
72bc17e9b4 Pass vnode.state as context to onbeforeremove. 2016-07-29 15:23:28 +02:00
Pierre-Yves Gerardy
0566b04a0f Add test for onbeforeremove context. 2016-07-29 15:23:28 +02:00
Leo Horie
023956b62e Merge pull request #1174 from pygy/move-up-vnodes-assignment
Move the `dom.vnodes` assignement up one line.
2016-07-26 10:32:34 -04:00
Gaspar
4acf5e58a3 Pass namespace to new children when updating their parent 2016-07-26 11:09:13 +02:00
Pierre-Yves Gerardy
75f1bd2f71 Move the dom.vnodes assignement up one line.
It makes it possible to peek into the vnodes tree from the `oncreate` hook of a component.
2016-07-26 08:58:38 +02:00
Leo Horie
1155027c91 fix #1163 2016-07-21 00:52:32 -04:00
Pierre-Yves Gerardy
7b09f1975c Fix the onremove tests 2016-07-16 23:13:54 +02:00
Leo Horie
519b352c2c fix onremove across components 2016-07-15 22:22:34 -04:00
Leo Horie
276184484d fix diff bugs when there are null components in list 2016-07-15 00:28:01 -04:00
Leo Horie
7227cc546f fix recycling when tag is different in unkeyed node 2016-07-12 11:30:58 -04:00
Leo Horie
a6c56ff6b9 resolve hook in router 2016-07-11 09:50:00 -04:00
Leo Horie
ffa9736151 fix diff for other null component root cases 2016-07-08 15:08:56 -04:00
Leo Horie
abadcfc13a fix null ref when updating component root from null to something 2016-07-08 14:57:10 -04:00
Leo Horie
a988276e9b Revert "don't copy state anymore"
This reverts commit cece44d4ac.
2016-07-08 10:24:48 -04:00
Leo Horie
cece44d4ac don't copy state anymore 2016-07-08 00:40:52 -04:00
impinball
b4fb21475c Add editorconfig, resolve differences
This includes newlines, tabs, among other things.
2016-06-18 03:22:12 -04:00
Leo Horie
693c87f5f1 fix svg class updates 2016-06-07 20:20:30 -04:00
Leo Horie
4b6c4254ba s/shouldUpdate/onbeforeupdate 2016-06-06 09:59:35 -04:00
Leo Horie
ddc430a6d3 fix most gcc warnings 2016-06-03 23:55:31 -04:00
Leo Horie
ca784a684e fix svg across component boundaries 2016-06-03 12:27:24 -04:00
Leo Horie
f9ef480b34 fix bugs about recycling in components, and styles when reusing style object 2016-06-02 21:42:18 -04:00
Leo Horie
86673f8d16 add missing fields to avoid monomorphism-related deopts 2016-06-02 21:41:19 -04:00
Leo Horie
15373057df ensure multiple attributes work at the same time as attrs w/ square brackets 2016-06-01 16:22:37 -04:00
Leo Horie
b2b0ab34dd parse pattern attribute correctly 2016-06-01 15:43:42 -04:00
Leo Horie
e7420e72e1 more tests 2016-05-24 23:16:43 -04:00
Leo Horie
977239d207 rename limiter to throttle and refactor
- don't inject raf/setTimeout since we can't really mock them w/ a good degree of timing accuracy anyways

fix some unrelated tests
2016-05-19 23:24:04 -04:00
Pat Cavit
e466ccebd0 Remove unused var (#1053)
Uglify caught this when I was testing to see what the updated min+gzip size was.
2016-05-19 12:41:25 -07:00
Leo Horie
60171f503d fix input cursor placement in chrome 2016-05-19 02:22:00 -04:00