Skip to content

onPatches now checks for patch.type #161

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

Merged
merged 5 commits into from
Oct 13, 2021
Merged

Conversation

eddypjr
Copy link
Contributor

@eddypjr eddypjr commented Oct 12, 2021

  • onPatches now checks for patch.type's "move" and "splice"
  • All other incompatible patch types like "add", "delete", "slice", and "values" are ignored

lib/list.js Outdated
@@ -152,7 +153,7 @@ ListDOMPatcher.prototype = {
this.move,
[patch.toIndex, patch.fromIndex]
);
} else {
} else if (patch.type === "splice") {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there a tab character between } and else

Copy link
Contributor Author

@eddypjr eddypjr Oct 12, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is not, that is not showing for me locally either.
Screen Shot 2021-10-12 at 1 58 31 PM
e

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how can you tell when your tab width is 2?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You were right! Thanks for the heads up. The changes have been pushed up.

@eddypjr eddypjr merged commit 0698138 into master Oct 13, 2021
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