Skip to content

Commit

Permalink
Merge pull request #2237 from sveltejs/gh-2053
Browse files Browse the repository at this point in the history
only clear out stylesheet after removing a specific animation
  • Loading branch information
Rich-Harris authored Mar 16, 2019
2 parents cdbd0c3 + 03a4f05 commit 088bb7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/internal/style_manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export function delete_rule(node, name) {
)
.join(', ');

if (!--active) clear_rules();
if (name && !--active) clear_rules();
}

export function clear_rules() {
Expand Down

0 comments on commit 088bb7b

Please sign in to comment.