Skip to content

Commit

Permalink
fix: issue #253 (#267)
Browse files Browse the repository at this point in the history
  • Loading branch information
yotamberk authored Jan 27, 2020
1 parent 109c121 commit 29ef0c1
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions lib/timeline/component/item/BoxItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,9 +271,14 @@ class BoxItem extends Item {
if (this.displayed) {
const dom = this.dom;

if (dom.box.parentNode) dom.box.remove();
if (dom.line.parentNode) dom.line.remove();
if (dom.dot.parentNode) dom.dot.remove();
if (dom.box.remove) dom.box.remove();
else if (dom.box.parentNode) dom.box.parentNode.removeChild(dom.box); // IE11

if (dom.line.remove) dom.line.remove();
else if (dom.line.parentNode) dom.line.parentNode.removeChild(dom.line); // IE11

if (dom.dot.remove) dom.dot.remove();
else if (dom.dot.parentNode) dom.dot.parentNode.removeChild(dom.dot); // IE11

this.displayed = false;
}
Expand Down

0 comments on commit 29ef0c1

Please sign in to comment.