only delete applicable transition animations - fixes #1290

pull/7738/head
Rich-Harris 8 years ago
parent c637b91a9b
commit 8a84393bdf

@ -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(', ');
}

Loading…
Cancel
Save