Skip to content

Commit 619230a

Browse files
remove-unsafe-dom-prototype (#5432)
1 parent 4c3fcef commit 619230a

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

js/activity.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1594,18 +1594,6 @@ class Activity {
15941594
this.blocksContainer.x = 0;
15951595
this.blocksContainer.y = 0;
15961596

1597-
Element.prototype.remove = () => {
1598-
this.parentElement.removeChild(this);
1599-
};
1600-
1601-
NodeList.prototype.remove = HTMLCollection.prototype.remove = () => {
1602-
for (let i = 0, len = this.length; i < len; i++) {
1603-
if (this[i] && this[i].parentElement) {
1604-
this[i].parentElement.removeChild(this[i]);
1605-
}
1606-
}
1607-
};
1608-
16091597
const table = document.getElementById("myTable");
16101598
if (table !== null) {
16111599
table.remove();

0 commit comments

Comments
 (0)