From 33c0d39ad69ace717a5ac81be9b63c36797bd2cd Mon Sep 17 00:00:00 2001 From: agamemnus Date: Wed, 7 Jun 2017 13:15:08 -0400 Subject: [PATCH 1/2] Update drawer.js --- src/drawer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drawer.js b/src/drawer.js index 260695e93..4081ee486 100644 --- a/src/drawer.js +++ b/src/drawer.js @@ -200,7 +200,7 @@ WaveSurfer.Drawer = { destroy: function () { this.unAll(); if (this.wrapper) { - this.container.removeChild(this.wrapper); + if (this.wrapper.parentNode == this.container) this.container.removeChild(this.wrapper); this.wrapper = null; } }, From 0d68fb07d77e7dc3fcf62d3d62508c1f1de2bfe7 Mon Sep 17 00:00:00 2001 From: agamemnus Date: Wed, 7 Jun 2017 15:08:44 -0400 Subject: [PATCH 2/2] Update drawer.js --- src/drawer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drawer.js b/src/drawer.js index 4081ee486..6a7d28ec3 100644 --- a/src/drawer.js +++ b/src/drawer.js @@ -200,7 +200,7 @@ WaveSurfer.Drawer = { destroy: function () { this.unAll(); if (this.wrapper) { - if (this.wrapper.parentNode == this.container) this.container.removeChild(this.wrapper); + if (this.wrapper.parentNode == this.container) { this.container.removeChild(this.wrapper); } this.wrapper = null; } },