Commit Graph

184 Commits (6fc42fe18b4ed0b325abcf3b6b5dc21dbb56be22)

Author SHA1 Message Date
Rich Harris dd8cc8c194 tidy up, dedupe a bit
9 years ago
Rich Harris 2f0abaa719 apply optimisation to raw tags
9 years ago
Rich Harris 0df91d9a5d update tests
9 years ago
Rich Harris ba2b6838f3 update tests
9 years ago
Rich Harris a2e85aec1d replace destroy with noop on destroy
9 years ago
Rich Harris 6ae5e32371 update tests
9 years ago
Rich Harris 92766ee9e7 handle set after destroy, and move destroy into shared helpers
9 years ago
Rich Harris 33580f272e Merge pull request #751 from sveltejs/hoist-if-block-selectors
9 years ago
Hunter Perrin 22579bae78 Changed from this keyword to argument in setup method.
9 years ago
Hunter Perrin d45bb7a16c Added setup function which can supply static methods/properties. Closes #480. Closes #578.
9 years ago
Rich Harris a2f2bf09bc rename to select_block_type and current_block_type
9 years ago
Rich Harris 30eceebb13 hoist if block selectors
9 years ago
Rich Harris 714a267837 dont throw error if component is destroyed twice (closes #643)
9 years ago
Rich Harris 80474c524e Merge pull request #733 from sveltejs/gh-375
9 years ago
Rich Harris 92313501d0 use helper to encapsulate styles, rather than being repetitious (fixes #375)
9 years ago
Rich Harris cff7fe004b minify css and remove unused styles (#697)
9 years ago
Zhuravlev Yury 8f1836f46e Update css-media-query test. It's look like somebody forgot about that.
9 years ago
Rich Harris 6676fe31b4 Merge pull request #719 from sveltejs/gh-712
9 years ago
Rich Harris 8ebbe52c65 update tests
9 years ago
Rich Harris 1eb897df52 failing test for #712
9 years ago
Rich Harris 3f38efcf09 update tests
9 years ago
Rich Harris 84503ced19 tidy up
9 years ago
Rich Harris ae9de0f25e remove _flush in favour of callAll
9 years ago
Rich Harris f505a07384 fire intro.start and outro.start events (#702)
9 years ago
Rich Harris b37cfd37f2 rename _renderHooks to _oncreate, since thats all its used for
9 years ago
Rich Harris 1f34e4a469 call oncreate functions before bindings
9 years ago
Rich Harris 79ed77414c Merge pull request #676 from sveltejs/gh-608
9 years ago
Rich Harris 8b2e65b3ce update tests
9 years ago
Rich Harris f6dad89c90 Merge branch 'master' into codegen
9 years ago
Rich Harris 88ec5aee90 fix tests
9 years ago
Rich Harris c2cf6214c7 use #foo instead of block.alias("foo")
9 years ago
Rich Harris 3101c699aa use @foo for generator.alias("foo")
9 years ago
Rich Harris 6a1248334b update tests
9 years ago
Rich Harris 30bbbc5c30 fix bad indentation in generated code
9 years ago
Paul Sauve 62b42db6cf Fix #643
9 years ago
Rich Harris f92b33c130 run prettier on src, update tests
9 years ago
Rich Harris 8458a3f9e2 merge master -> gh-592
9 years ago
Rich Harris ac94286897 Merge branch 'fix-each-block' of https://github.com/hperrin/svelte into hperrin-fix-each-block
9 years ago
Hunter Perrin eb71c440a4 Fixed each block producing elements in wrong order after change. Fixes #610.
9 years ago
Rich Harris 14c42114fe update tests to use new assign helper
9 years ago
Rich Harris bc1f416121 remove TODO
9 years ago
Rich Harris 7d4dcdf531 update tests
9 years ago
Rich Harris c61db3c898 remove some files from repo
9 years ago
Rich Harris cd76c110f7 make transitionManager treeshakeable (fixes #593)
9 years ago
Rich Harris 18f5e06e83 compare bundled output with expectations
9 years ago
Rich Harris eb6c72debe Merge pull request #571 from sveltejs/gh-569
9 years ago
Rich-Harris 735bd21550 fix insertion order of if blocks and their anchors
9 years ago
Rich-Harris 13607ebe89 dont store keyed block iterations in an array
9 years ago
Rich-Harris 5b307ca1ee increase test coverage
9 years ago
Rich Harris 41a5a53be5 Merge pull request #559 from sveltejs/simpler-codegen
9 years ago
Rich-Harris 72b7b3447e remove unnecessary if statement
9 years ago
Rich-Harris 30abda37bd simplify SSR codegen
9 years ago
Rich-Harris e06ba84a74 fix test
9 years ago
Rich-Harris 64dbd45601 generate less code for if-blocks with else-blocks (closes #540)
9 years ago
Conduitry 980c2626b4 label <style> element with id instead of with attribute, for performance
9 years ago
Conduitry 168b43eea1 when creating a component, always check whether its css is still in the dom (#554)
9 years ago
Rich-Harris 3871627d63 outros on keyed each-blocks
9 years ago
Rich-Harris 3eda59d2cb Merge branch 'master' into gh-7
9 years ago
Conduitry dcd2a99a77 fix simple if blocks with top-level or conditions (#532)
9 years ago
Rich-Harris 339d2987fc update tests
9 years ago
Conduitry 7969409ae6 Merge branch 'master' into gh-3
9 years ago
Rich Harris b05dbdb9e2 Update expected.js
9 years ago
Rich Harris a52f40eb82 Merge branch 'master' into gh-507
9 years ago
Rich-Harris 84cac6bbd9 anchor-less each blocks
9 years ago
Rich-Harris e903ff69fc only create anchors for if blocks when necessary
9 years ago
Rich-Harris 12f211c6a8 populate state in preprocess step, including naming DOM nodes
9 years ago
Rich-Harris 6ff83a4127 rename root to state, and allow state to be used as context
9 years ago
Rich-Harris 54047c31bf hoist variables where appropriate (#504)
9 years ago
Rich-Harris adaccacc32 optimise simple if-blocks
9 years ago
Rich-Harris dc6fa6ff24 collapse text around comments
9 years ago
Rich-Harris 6f5f961c8a exclude indexes from dependencies
9 years ago
Rich-Harris df468e3afb use correct dependencies for each-block updates
9 years ago
Rich-Harris aa67df7fbb simplify if-block switching code
9 years ago
Rich-Harris 796ee21cc2 rename some variables so that they make more sense
9 years ago
Rich-Harris b50ad08506 get rid of tmp variable, we dont need it
9 years ago
Rich-Harris f75a2f0aba dont update static subtrees, even with a noop
9 years ago
Rich-Harris 9818346e86 conditionalise each-block updates
9 years ago
Rich-Harris 73318de59b failing test for #381
9 years ago
Rich Harris ceea9be45a collapse consecutive if-statements with the same condition (#450)
10 years ago
Rich Harris e74b3edd30 hoist some event handlers, rewrite non-hoisted ones to avoid binding
10 years ago
Rich-Harris 20ee8370e4 failing test for #433
10 years ago
Rich-Harris de1f21553d add gitkeep file so tests pass in CI
10 years ago
Rich Harris 88cf096065 remove #433 test for now
10 years ago
Rich Harris 7479219f3c move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433
10 years ago