only delete applicable transition animations - fixes #1290

pull/1293/head
Rich-Harris 8 years ago
parent 78f506a50b
commit 6860d09c72

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