summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2024-03-15 13:37:23 +0100
committerJo-Philipp Wich <jo@mein.io>2024-03-15 13:37:23 +0100
commit3edbecf40fc322911d081dde726a060e4db98b58 (patch)
tree1989590dd6365fc549b2e95fdaa8b65b4dea9c26
parent61cef9baad6cf753d37bfa7fb7a661d26180f6b9 (diff)
luci-base: cbi.js: drop CustomEvent polyfill
All supported browsers natively support this functionality since quite a while already. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
-rw-r--r--modules/luci-base/htdocs/luci-static/resources/cbi.js12
1 files changed, 0 insertions, 12 deletions
diff --git a/modules/luci-base/htdocs/luci-static/resources/cbi.js b/modules/luci-base/htdocs/luci-static/resources/cbi.js
index 38687a1cef..d7b462c367 100644
--- a/modules/luci-base/htdocs/luci-static/resources/cbi.js
+++ b/modules/luci-base/htdocs/luci-static/resources/cbi.js
@@ -733,18 +733,6 @@ function matchesElem(node, selector) { return L.dom.matches(node, selector) }
function findParent(node, selector) { return L.dom.parent(node, selector) }
function E() { return L.dom.create.apply(L.dom, arguments) }
-if (typeof(window.CustomEvent) !== 'function') {
- function CustomEvent(event, params) {
- params = params || { bubbles: false, cancelable: false, detail: undefined };
- var evt = document.createEvent('CustomEvent');
- evt.initCustomEvent( event, params.bubbles, params.cancelable, params.detail );
- return evt;
- }
-
- CustomEvent.prototype = window.Event.prototype;
- window.CustomEvent = CustomEvent;
-}
-
function cbi_dropdown_init(sb) {
if (sb && L.dom.findClassInstance(sb) instanceof L.ui.Dropdown)
return;