Commit graph

117 commits

Author SHA1 Message Date
Barney Carroll
e1ea2822c9 Fix state initialisation logic 2017-01-06 17:12:56 +00:00
Barney Carroll
a19eae2792 Avoid creating intermediary constructor in component state creation 2017-01-06 16:59:52 +00:00
Barney Carroll
fbb454c6fd Merge branch 'rewrite' into array-isArray 2017-01-04 14:24:07 +00:00
Barney Carroll
3fa771ac28 Test for onbeforeremove delayed resolution 2016-12-30 19:31:51 +00:00
Leo Horie
bedcd8bdbf update docs re:onbeforeremove and clean up 2016-12-26 12:28:13 -05:00
Leo Horie
1222a9a3ab change onbeforeremove and make state inherit from prototype 2016-12-26 12:19:20 -05:00
James
39b6f1e0fe Simplify draw routine 2016-12-18 22:21:53 +11:00
James
15c28066d7 Spy on setAttribute to test customElement support 2016-12-18 22:07:33 +11:00
Leo Horie
de07a54881 add support for route state #1480 2016-12-17 21:50:04 -05:00
Leo Horie
c95629c623 handles noop from undefined to null #1473 2016-12-16 15:21:57 -05:00
Barney Carroll
1050ade7c8 Merge branch 'rewrite' into array-isArray 2016-12-05 19:12:01 +00:00
Tomas Sardyha
3e44c9234c Improve event binding 2016-12-03 11:57:46 +01:00
Leo Horie
3068f2494b beef up tests 2016-12-02 21:24:12 -05:00
Leo Horie
2f7c4983f3 ensure null doesn't displace next siblings 2016-12-02 20:41:07 -05:00
Barney Carroll
deaabb2684 Merge branch 'rewrite' into array-isArray 2016-11-24 16:26:10 +00:00
Barney Carroll
e8669ad5c8 Fix #1421 2016-11-24 12:29:45 +00:00
Barney Carroll
edf3c5eaf7 Tests for contenteditable trust, including failing test for #1421 2016-11-24 12:25:00 +00:00
Barney Carroll
d82d337569 Replace x instanceof Array with Array.isArray(x) 2016-11-24 09:21:27 +00:00
Leo Horie
2b856ed6ac remove unnecessary append 2016-11-23 23:33:57 -05:00
Leo Horie
8eb61a12ab fix diff bug when array is sparse, item type and position and array length change 2016-11-23 22:28:08 -05:00
Vincent Velociter
47db092838 Fix blinking select in chrome when setting select value 2016-11-22 11:14:58 +01:00
Leo Horie
d20e8a880f Merge pull request #1410 from barneycarroll/allow-verbose-class-attribute-declaration
Allow verbose class attribute declaration
2016-11-22 00:31:35 -05:00
porsager
fd484f9766 Fix options inside optgroups (active check is unnecessary) 2016-11-21 09:59:21 +01:00
porsager
af01c3c89f Use correct key name 2016-11-21 02:27:59 +01:00
Rasmus Porsager
848f79c2c7 Don't set same value of options in focused select - fixes #1413 2016-11-21 02:12:56 +01:00
Barney Carroll
6cb9a5cc80 Handle [class] selector properly 2016-11-19 17:44:36 +00:00
Barney Carroll
63f491db88 Initial test case: can't declare class as an attribute in hyperscript selector 2016-11-19 17:32:36 +00:00
Thibault Duplessis
7163d5f744 Fix SVG element update with tag change
Fixes the new failing test.

Before: the updated element is unknown HTML
After: the updated element is an SVG element
2016-11-13 11:31:55 +01:00
Thibault Duplessis
d539c515ea Test SVG update element with tag change
Currently failing. Updating an SVG element which tag changes
actually results in an unknown HTML element.
2016-11-13 11:30:22 +01:00
valtron
6526ff9df6 Fix #1380 2016-11-04 12:30:14 -06:00
Leo Horie
ff7ce37476 allow dom level 1 events to be removed #1385 2016-11-04 12:33:36 -04:00
Leo Horie
bc0a75a6a2 fix regression when empty text node 2016-11-02 15:38:23 -04:00
Leo Horie
8b168deef4 build 2016-11-02 14:57:09 -04:00
Leo Horie
3c6e257a19 #1311 don't repeatedly throw the same error if oninit async-redraws and view throws 2016-11-02 14:56:17 -04:00
Leo
75b7f0fc81 handle contenteditable correctly 2016-11-02 13:15:43 -04:00
Leo Horie
65b4116666 don't throw error on undefined/null trusted vnode #1375 2016-10-28 09:51:07 -04:00
Leo Horie
40bc9449cb don't break cursor on textarea update in Edge 2016-10-27 20:18:25 -04:00
maks feltrin
201de4bc8b remove unneeded else 2016-10-24 17:41:31 +02:00
Leo Horie
730c960416 #1281 fixed recyling edge case 2016-10-04 16:33:57 -04:00
Leo Horie
b8ef290acd improved bundler, handle width/height atts 2016-09-23 10:31:33 -04:00
Leo Horie
55f0dfa4dd Merge remote-tracking branch 'origin/rewrite' into rewrite
Conflicts:
	docs/route.md
2016-09-12 09:48:30 -04:00
Leo Horie
b9244f4c21 fix class removal 2016-09-12 09:45:57 -04:00
Pierre-Yves Gerardy
b8673f2ff5 Validate the DOM node passed to render 2016-09-09 15:20:26 +02:00
Leo Horie
ec07d76fcd m.fragment docs
public api tests
2016-08-24 00:26:15 -04:00
Leo Horie
53a83a58f2 rename RouteResolver::view back to render to restore diff semantics
prevent double resolving
2016-08-23 22:33:18 -04:00
Barney Carroll
f2f8bf825e Test case for circular component returns 2016-08-22 11:37:42 +01:00
Barney Carroll
db45260dbc Throw self-returning component to avoid infinite loop #1260 2016-08-22 11:27:42 +01:00
Leo Horie
6bebdf8d4b Merge pull request #1249 from pygy/m-fragment
Add `m.fragment()`
2016-08-18 19:27:07 -04:00
Pierre-Yves Gerardy
305035f03b Add m.fragment() 2016-08-18 23:34:36 +02:00
Leo Horie
3682a78880 clean up duplicate test 2016-08-18 00:01:11 -04:00