Skip to content

Commit 0a3256b

Browse files
Remove stats div from the DOM when removing stats component (#5733)
1 parent 68e327d commit 0a3256b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/components/scene/stats.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ registerComponent('stats', {
2525
return (!this.data) ? this.hide() : this.show();
2626
},
2727

28+
remove: function () {
29+
this.stats.dom.remove();
30+
},
31+
2832
hide: function () {
2933
this.stats.dom.classList.add(HIDDEN_CLASS);
3034
},

0 commit comments

Comments
 (0)