From 226dfa97d5e7d680e9497f6041083eee54907ba9 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Tue, 11 Feb 2025 17:24:07 +0800 Subject: [PATCH] refactor: remove prototype extension --- src/BootstrapBlazor/wwwroot/modules/data.js | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/BootstrapBlazor/wwwroot/modules/data.js b/src/BootstrapBlazor/wwwroot/modules/data.js index b18fa2c89a5..40ae5363280 100644 --- a/src/BootstrapBlazor/wwwroot/modules/data.js +++ b/src/BootstrapBlazor/wwwroot/modules/data.js @@ -1,14 +1,4 @@ -if (typeof (Array.prototype.remove) !== 'function') { - Array.prototype.remove = function(item) { - const index = this.indexOf(item); - if (index > -1) { - this.splice(index, 1); - } - return this; - } -} - -const elementMap = new Map() +const elementMap = new Map() export default { set(element, instance) {