From 03a4f05445a1cf40058a5a5df88caca17beff0ad Mon Sep 17 00:00:00 2001 From: Richard Harris Date: Sat, 16 Mar 2019 16:24:03 -0400 Subject: [PATCH] only clear out stylesheet after removing a specific animation - fixes #2053 --- src/internal/style_manager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/internal/style_manager.js b/src/internal/style_manager.js index 38f0acd94e7b..fe524562b818 100644 --- a/src/internal/style_manager.js +++ b/src/internal/style_manager.js @@ -52,7 +52,7 @@ export function delete_rule(node, name) { ) .join(', '); - if (!--active) clear_rules(); + if (name && !--active) clear_rules(); } export function clear_rules() {