mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-15 21:48:20 +02:00
Moved cleanuo code to exit function in welcome.js
This commit is contained in:
@@ -221,9 +221,6 @@ export function uiCurtain() {
|
||||
}
|
||||
|
||||
curtain.cut(box, options.duration);
|
||||
|
||||
//remove any leftover .counter elements
|
||||
tooltip.selectAll('.counter').remove();
|
||||
|
||||
return tooltip;
|
||||
};
|
||||
|
||||
@@ -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();
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user