Skip to content
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

Conversation

colincasey
Copy link
Contributor

@colincasey colincasey commented May 11, 2019

This only addresses #2446 by applying the bindings and event handlers in the order they were declared in the attributes.

const this_binding = this.bindings.find(b => b.node.name === 'this');

function getOrder (item) {
if (item instanceof EventHandler) {
Copy link
Contributor Author

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-io
Copy link

codecov-io commented Aug 30, 2019

Codecov Report

Merging #2737 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           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.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5b4758f...a17f8cc. Read the comment docs.

@Conduitry
Copy link
Member

Closing in favor of #4148, which resolved some conflicts.

@Conduitry Conduitry closed this Dec 23, 2019
@tanhauhau tanhauhau mentioned this pull request Mar 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants