Skip to content

Commit 226dfa9

Browse files
committed
refactor: remove prototype extension
1 parent 1b2f322 commit 226dfa9

File tree

1 file changed

+1
-11
lines changed
  • src/BootstrapBlazor/wwwroot/modules

1 file changed

+1
-11
lines changed

src/BootstrapBlazor/wwwroot/modules/data.js

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,4 @@
1-
if (typeof (Array.prototype.remove) !== 'function') {
2-
Array.prototype.remove = function(item) {
3-
const index = this.indexOf(item);
4-
if (index > -1) {
5-
this.splice(index, 1);
6-
}
7-
return this;
8-
}
9-
}
10-
11-
const elementMap = new Map()
1+
const elementMap = new Map()
122

133
export default {
144
set(element, instance) {

0 commit comments

Comments
 (0)