0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-12-01 17:30:59 +01:00
Commit Graph

178 Commits

Author SHA1 Message Date
Rich Harris
5d84a93c99 shorten each block var names 2017-09-18 20:53:23 -04:00
Rich Harris
4f1d48c4a6 more readable each block values 2017-09-18 18:32:44 -04:00
Rich Harris
74d84d81e9 remove incorrect argument 2017-09-18 17:54:57 -04:00
Rich Harris
66ae0d9c94 use textContent and innerHTML where appropriate (#23) 2017-09-18 17:24:31 -04:00
Rich Harris
5cd76be290 various fixes 2017-09-18 15:12:40 -04:00
Rich Harris
3b68d1f5dc update tests 2017-09-17 17:27:05 -04:00
Rich Harris
6b70825ac3 Merge pull request #856 from sveltejs/remove-is-initial
remove isInitial check on recompute
2017-09-17 13:34:23 -04:00
Rich Harris
21f6dd8cef Merge branch 'master' into static-components 2017-09-17 13:02:02 -04:00
Rich Harris
bd282df921 remove version numbers from snapshot tests 2017-09-17 13:01:47 -04:00
Rich Harris
e2ef1fdb96 dont update components with only static bindings 2017-09-17 12:59:30 -04:00
Rich Harris
4d6e95d799 update snapshot tests 2017-09-17 12:29:11 -04:00
Rich Harris
b1cbffece6 remove excess parentheses 2017-09-17 12:18:23 -04:00
Rich Harris
33dbc18a10 merge master -> shared-init 2017-09-17 12:12:12 -04:00
Rich Harris
0b71a93779 update tests 2017-09-16 15:20:43 -04:00
Rich Harris
bd002f94bc extract some shared init logic 2017-09-16 15:09:38 -04:00
Rich Harris
1d34bd886e put version comment above imports 2017-09-16 14:27:59 -04:00
Rich Harris
6e57fa3ced add debugging comments 2017-09-16 14:24:55 -04:00
Rich Harris
fbbaff5404 typo 2017-09-16 11:08:41 -04:00
Rich Harris
770c14955d escape shadow DOM CSS - fixes #840 2017-09-12 18:26:15 -04:00
P
072f541855 Change let -> var, solves #838 2017-09-11 22:48:05 +01:00
Rich Harris
bf3afe955c Merge pull request #833 from sveltejs/nightmare
use nightmare to test custom element stuff
2017-09-10 11:34:17 -04:00
Rich Harris
ef2a2b329a use nightmare to test custom element stuff 2017-09-10 10:40:23 -04:00
Rich Harris
d75ab8544e remove requestAnimationFrame stuff, convert time ranges to {start, end} objects 2017-09-09 12:40:33 -04:00
Rich Harris
1a99c515ff add snapshot test for #830 2017-09-09 10:20:05 -04:00
Rich Harris
073cbc0460 update some tests 2017-09-03 17:18:59 -04:00
Rich Harris
5e325d5a87 remove redundant input blowback guard - closes #645 2017-09-03 12:45:45 -04:00
Rich Harris
e993ae0748 more consistent style for generated code 2017-09-03 11:52:00 -04:00
Rich Harris
81a04ad86c merge master -> gh-797 2017-09-03 10:02:41 -04:00
Rich Harris
7401590fba Merge branch 'master' into gh-797 2017-09-03 10:01:47 -04:00
Rich Harris
2380109f15 handly directly instantiated custom elements, and slots 2017-09-03 09:45:10 -04:00
Rich Harris
186b770ef4 use helper for setting styles 2017-09-03 08:30:08 -04:00
Rich Harris
824998fdaa update tests 2017-09-02 20:12:14 -04:00
Rich Harris
f5f35b5a50 scoped styles 2017-09-02 18:41:45 -04:00
Rich Harris
29fc3e5169 update tests 2017-09-02 17:22:28 -04:00
Rich Harris
afe3e2e669 basic custom element generation (#797) 2017-09-02 16:29:02 -04:00
Rich Harris
d54d00cac1 handle url(...) and quoted values 2017-09-02 12:59:00 -04:00
Rich Harris
228a7808ac optimize style attributes 2017-09-01 17:25:44 -04:00
Rich Harris
f5958584d9 dont noop set/get until after component is destroyed (fixes #788) 2017-08-31 13:26:12 -04:00
Rich Harris
6499d4714d only use noscript if necessary 2017-08-30 08:46:11 -04:00
Rich Harris
5f5f09b94e update snapshot tests 2017-08-29 08:43:11 -04:00
Andrew Worcester
caa67b5325 updated tests to reflect anchor change 2017-08-25 13:24:08 -04:00
Rich Harris
f7b829820f add legacy option, use it for setInputType (#773) 2017-08-17 19:04:07 -04:00
Rich Harris
8818357fc4 tidy up 2017-08-15 15:15:22 -04:00
Rich Harris
3daa7aa6b3 we can now do changed.foo instead of "foo" in changed - is faster and smaller 2017-08-14 12:35:45 -04:00
Rich Harris
f31c206b73 tidy up, dedupe a bit 2017-08-14 12:24:39 -04:00
Rich Harris
4dd5fc5594 apply optimisation to raw tags 2017-08-14 11:34:24 -04:00
Rich Harris
5636506fc0 update tests 2017-08-14 07:29:45 -04:00
Rich Harris
427a0b5925 update tests 2017-08-13 22:36:39 -04:00
Rich Harris
fd3792bd60 replace destroy with noop on destroy 2017-08-06 14:26:19 -04:00
Rich Harris
44b73191c7 update tests 2017-08-05 22:24:31 -04:00
Rich Harris
86fb0e4ced handle set after destroy, and move destroy into shared helpers 2017-08-05 22:16:47 -04:00
Rich Harris
f3f85841a5 Merge pull request #751 from sveltejs/hoist-if-block-selectors
Hoist if block selectors
2017-08-05 21:26:24 -04:00
Hunter Perrin
ba74297a19 Changed from this keyword to argument in setup method. 2017-08-05 12:41:37 -07:00
Hunter Perrin
59d01f737d Added setup function which can supply static methods/properties. Closes #480. Closes #578. 2017-08-05 11:44:24 -07:00
Rich Harris
fef2367c11 rename to select_block_type and current_block_type 2017-08-05 10:58:39 -04:00
Rich Harris
177e7d09c3 hoist if block selectors 2017-08-05 10:53:23 -04:00
Rich Harris
962f04f4bf dont throw error if component is destroyed twice (closes #643) 2017-07-29 20:33:38 -04:00
Rich Harris
608f8943f3 Merge pull request #733 from sveltejs/gh-375
use helper to encapsulate styles, rather than being repetitious
2017-07-29 19:16:26 -04:00
Rich Harris
70a99925a9 use helper to encapsulate styles, rather than being repetitious (fixes #375) 2017-07-29 19:04:03 -04:00
Rich Harris
7b1299904b minify css and remove unused styles (#697) 2017-07-29 15:51:15 -04:00
Zhuravlev Yury
ab607269f9 Update css-media-query test. It's look like somebody forgot about that. 2017-07-26 11:50:53 +09:00
Rich Harris
5f09421a18 Merge pull request #719 from sveltejs/gh-712
Fix escaping bugs
2017-07-25 11:21:28 -04:00
Rich Harris
9085c0a22a update tests 2017-07-25 11:07:52 -04:00
Rich Harris
343d66538b failing test for #712 2017-07-24 18:36:22 -04:00
Rich Harris
3f73f252ac update tests 2017-07-24 14:58:32 -04:00
Rich Harris
1733966d18 tidy up 2017-07-11 15:21:18 -04:00
Rich Harris
84e6d0c5b7 remove _flush in favour of callAll 2017-07-08 14:25:41 -04:00
Rich Harris
e9f17f34ff fire intro.start and outro.start events (#702) 2017-07-08 14:18:26 -04:00
Rich Harris
d89d70e7a3 rename _renderHooks to _oncreate, since thats all its used for 2017-07-06 10:31:32 -04:00
Rich Harris
d707f6a3b2 call oncreate functions before bindings 2017-07-06 08:51:04 -04:00
Rich Harris
203e123d94 Merge pull request #676 from sveltejs/gh-608
Preserve whitespace inside nodes if necessary
2017-06-26 10:55:34 -04:00
Rich Harris
df1870df8b update tests 2017-06-25 17:03:32 -04:00
Rich Harris
f87c3328b5 Merge branch 'master' into codegen 2017-06-25 13:17:38 -04:00
Rich Harris
21a8b1dd06 fix tests 2017-06-25 12:57:27 -04:00
Rich Harris
334772a11d use #foo instead of block.alias("foo") 2017-06-25 11:24:24 -04:00
Rich Harris
9feee3a0bf use @foo for generator.alias("foo") 2017-06-25 10:05:52 -04:00
Rich Harris
0250398ee6 update tests 2017-06-18 01:08:03 -04:00
Rich Harris
e9516abffd fix bad indentation in generated code 2017-06-16 10:47:19 -04:00
Paul Sauve
dc0dedf3fe Fix #643 2017-06-15 22:33:03 -05:00
Rich Harris
84595fb381 run prettier on src, update tests 2017-06-02 21:57:25 -04:00
Rich Harris
3b70920991 merge master -> gh-592 2017-05-31 22:34:49 -04:00
Rich Harris
ce8dd647f0 Merge branch 'fix-each-block' of https://github.com/hperrin/svelte into hperrin-fix-each-block 2017-05-31 22:17:41 -04:00
Hunter Perrin
41c214a986 Fixed each block producing elements in wrong order after change. Fixes #610. 2017-05-31 18:58:55 -07:00
Rich Harris
a538f7a071 update tests to use new assign helper 2017-05-31 20:47:17 -04:00
Rich Harris
c4b68ca8cb remove TODO 2017-05-28 12:49:50 -04:00
Rich Harris
288d1c9d74 update tests 2017-05-28 11:53:19 -04:00
Rich Harris
739a832c37 remove some files from repo 2017-05-28 11:48:31 -04:00
Rich Harris
015ef56b18 make transitionManager treeshakeable (fixes #593) 2017-05-27 09:57:42 -04:00
Rich Harris
34170a5e76 compare bundled output with expectations 2017-05-27 09:52:33 -04:00
Rich Harris
86e05aaf74 Merge pull request #571 from sveltejs/gh-569
Fix insertion order of if blocks and their anchors
2017-05-06 16:12:32 -04:00
Rich-Harris
6dfb568d2a fix insertion order of if blocks and their anchors 2017-05-06 16:02:49 -04:00
Rich-Harris
23331e605a dont store keyed block iterations in an array 2017-05-06 11:33:08 -04:00
Rich-Harris
7db27152fb increase test coverage 2017-05-04 10:17:15 -04:00
Rich Harris
3a7f7e29c2 Merge pull request #559 from sveltejs/simpler-codegen
Simpler codegen
2017-05-04 09:04:38 -04:00
Rich-Harris
d8364f6e0a remove unnecessary if statement 2017-05-03 21:35:15 -04:00
Rich-Harris
43091431d1 simplify SSR codegen 2017-05-03 21:02:17 -04:00
Rich-Harris
3efb5ab993 fix test 2017-05-03 19:27:50 -04:00
Rich-Harris
c1a1a01bf0 generate less code for if-blocks with else-blocks (closes #540) 2017-05-03 17:30:13 -04:00
Conduitry
e6d2571e34 label <style> element with id instead of with attribute, for performance 2017-05-03 14:31:14 -04:00
Conduitry
a1c8ada088 when creating a component, always check whether its css is still in the dom (#554) 2017-05-03 13:07:05 -04:00