-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FIX #2446: apply bindings and event handlers in order #2737
FIX #2446: apply bindings and event handlers in order #2737
Conversation
const this_binding = this.bindings.find(b => b.node.name === 'this'); | ||
|
||
function getOrder (item) { | ||
if (item instanceof EventHandler) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This logic involving type detection seems a clunky but I'm not used to TypeScript. Is there a better way to handle this?
* master: (87 commits) -> v3.4.3 always add raw property to text nodes flesh out in/out transition tutorial chapter (sveltejs#2792) code style fix test fix tests Fix CRUD example to allow changing input values. Fixes sveltejs#2714 treat requestAnimationFrame as a noop on the server site: actions tutorial: destroy is not required (sveltejs#2776) Allow binding of <details> open site: add /faq redirect to GitHub wiki FAQ fix case sensitive import name, improve tsconfig type declarations for bundled files convert everything to TypeScript check for unknown props when creating component cleanup, improve comments typecheck npm script workarond for estree-walker related typings conflict compile/render-dom and other remaining typings ... # Conflicts: # src/compile/render-dom/wrappers/Element/index.ts
* master: Fix overwrite of 'offset' value in reactive statement fix slide example typos update svelte-repl (fixes download button) update svelte-repl update svelte-repl version use better eliza package gitignore workers add compiler typings to list of published files improve typings for animate, easing, transition, motion and internal apis update bundler worker fix gitignore fix types for easing functions fix build order generate internal-exports file update gitignore update folder structure - sveltejs#2790 bundle locally
# Conflicts: # src/compiler/compile/render_dom/wrappers/Element/index.ts
Codecov Report
@@ Coverage Diff @@
## master #2737 +/- ##
=======================================
Coverage 50.25% 50.25%
=======================================
Files 1 1
Lines 197 197
=======================================
Hits 99 99
Misses 98 98 Continue to review full report at Codecov.
|
Closing in favor of #4148, which resolved some conflicts. |
This only addresses #2446 by applying the bindings and event handlers in the order they were declared in the attributes.