Skip to content

Commit

Permalink
Merge pull request #1293 from sveltejs/gh-1290
Browse files Browse the repository at this point in the history
only delete applicable transition animations
  • Loading branch information
Rich-Harris authored Mar 30, 2018
2 parents 78f506a + 6860d09 commit c943a86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shared/transitions.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ export var transitionManager = {
node.style.animation = node.style.animation
.split(', ')
.filter(function(anim) {
return !/__svelte/.test(anim);
return anim.indexOf(name) === -1;
})
.join(', ');
}
Expand Down

0 comments on commit c943a86

Please sign in to comment.