From 6860d09c722b3afc3b5b5de124e3fc80f4e5e42c Mon Sep 17 00:00:00 2001 From: Rich-Harris Date: Fri, 30 Mar 2018 15:47:00 -0400 Subject: [PATCH] only delete applicable transition animations - fixes #1290 --- src/shared/transitions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/transitions.js b/src/shared/transitions.js index b9aea0cf52..63172d0658 100644 --- a/src/shared/transitions.js +++ b/src/shared/transitions.js @@ -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(', '); }