We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a3e45b commit 10d591bCopy full SHA for 10d591b
src/components/modebar/index.js
@@ -223,7 +223,7 @@ proto.hasButtons = function (buttons) {
223
/**
224
* @return {HTMLDivElement} The logo image wrapped in a group
225
*/
226
-proto.getLogo = function(){
+proto.getLogo = function() {
227
var group = this.createGroup(),
228
a = document.createElement('a');
229
@@ -523,6 +523,11 @@ proto.removeAllButtons = function() {
523
524
this.hasLogo = false;
525
};
526
+
527
+proto.destroy = function() {
528
+ Plotly.Lib.removeElement(this.container.querySelector('.modebar'));
529
+};
530
531
function createModebar(gd, buttons) {
532
var fullLayout = gd._fullLayout;
533
0 commit comments