Skip to content
This repository has been archived by the owner on Jun 9, 2022. It is now read-only.

Commit

Permalink
Merge pull request #132 from cBioPortal/no-prepend
Browse files Browse the repository at this point in the history
Dont use prepend, which is not supported in IE11
  • Loading branch information
adamabeshouse authored Mar 19, 2020
2 parents 275a605 + ef1c9c7 commit 8ae7617
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/oncoprintwebglcellview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ export default class OncoprintWebGLCellView {
const new_canvas = old_canvas.cloneNode() as HTMLCanvasElement;
const parent_node = old_canvas.parentNode;
parent_node.removeChild(old_canvas);
parent_node.prepend(new_canvas); // keep on bottom since we need overlays to not be hidden
parent_node.insertBefore(new_canvas, parent_node.childNodes[0]); // keep on bottom since we need overlays to not be hidden
this.$canvas = $(new_canvas);
this.ctx = null;
}
Expand Down

0 comments on commit 8ae7617

Please sign in to comment.