Commit graph

45 commits

Author SHA1 Message Date
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
6c3036e5c6 fix event removal in diff
fix CI
2016-08-12 22:08:02 -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
9d38c12630 don't move element if not needed 2016-08-11 00:28:03 -04:00
Pierre-Yves Gerardy
b6bb63ff85 Skip diff for cached, non-keyed nodes fix #1206 2016-08-06 00:10:54 +02: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
72bc17e9b4 Pass vnode.state as context to onbeforeremove. 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
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
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
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
Leo Horie
60171f503d fix input cursor placement in chrome 2016-05-19 02:22:00 -04:00
Leo Horie
b4903538f3 prevent recycling for vnodes w/ integration methods 2016-05-19 01:20:21 -04:00
Leo Horie
5ec06e7c08 init state, fix examples 2016-05-15 11:14:38 -04:00
Leo Horie
5265697cb2 semi-working bundle 2016-05-14 01:01:35 -04:00
Leo Horie
f4c1d4a998 cleanup and styling 2016-05-11 11:52:41 -04:00
Gyandeep Singh
f1f77c80b3 Fix: For css class addition to svg elements 2016-05-11 10:47:13 -05:00
Leo Horie
d5371533a7 fix attribute syncing for input, select, textarea
optimize events
2016-05-10 01:55:48 -04:00
Leo Horie
4a215a2815 Merge pull request #1035 from avlcodemonkey/rewrite
Set value of a select after children are created.
2016-05-10 00:27:28 -04:00
Leo Horie
b17bd250b7 support all events 2016-05-06 10:11:31 -04:00
Leo Horie
ead2e8ac0b shouldUpdate, component oninit order fix 2016-05-05 23:20:31 -04:00
Leo Horie
3282ef3f77 components, angular dbmon 2016-05-03 23:39:01 -04:00
Chris Pittman
143a816d47 Set value of a select after children are created. 2016-05-03 11:03:34 -04:00
Leo Horie
559369016d initial commit (work in progress) 2016-04-20 20:02:37 -04:00