Moved cleanuo code to exit function in welcome.js

This commit is contained in:
ajlomagno
2017-12-27 13:19:22 -05:00
parent 81910d4f27
commit 5d3df25960
2 changed files with 4 additions and 4 deletions
-3
View File
@@ -221,9 +221,6 @@ export function uiCurtain() {
}
curtain.cut(box, options.duration);
//remove any leftover .counter elements
tooltip.selectAll('.counter').remove();
return tooltip;
};
+4 -1
View File
@@ -137,7 +137,7 @@ export function uiIntroWelcome(context, reveal) {
);
}
chapter.enter = function() {
welcome();
};
@@ -145,6 +145,9 @@ export function uiIntroWelcome(context, reveal) {
chapter.exit = function() {
listener.off();
var tooltip = d3_select('.curtain-tooltip.intro-mouse')
.selectAll('.counter')
.remove();
};