Skip to content

Commit b2c410a

Browse files
ArgoZhanggithub-actions[bot]ice6
authored
refactor(Array): remove prototype extension (#5348)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-Authored-By: ice6 <[email protected]>
1 parent 1b2f322 commit b2c410a

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)