You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2020/07/15 08:09:17 UTC
[myfaces-tobago] branch master updated: clean up: IE is not
supported
This is an automated email from the ASF dual-hosted git repository.
lofwyr pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/myfaces-tobago.git
The following commit(s) were added to refs/heads/master by this push:
new 5a29ef6 clean up: IE is not supported
5a29ef6 is described below
commit 5a29ef654f24297a6ceae395b82590f8e484eb00
Author: Udo Schnurpfeil <ud...@irian.eu>
AuthorDate: Wed Jul 15 10:09:06 2020 +0200
clean up: IE is not supported
---
.../src/main/npm/js/tobago-polyfill.js | 24 +---------------------
1 file changed, 1 insertion(+), 23 deletions(-)
diff --git a/tobago-theme/tobago-theme-standard/src/main/npm/js/tobago-polyfill.js b/tobago-theme/tobago-theme-standard/src/main/npm/js/tobago-polyfill.js
index e574623..c38ae8a 100644
--- a/tobago-theme/tobago-theme-standard/src/main/npm/js/tobago-polyfill.js
+++ b/tobago-theme/tobago-theme-standard/src/main/npm/js/tobago-polyfill.js
@@ -16,29 +16,7 @@
// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////
-// from https://developer.mozilla.org/en-US/docs/Web/API/Element/closest
-// todo: check, if this is needed for Tobago 5
-// for ie
-if (!Element.prototype.matches) {
- Element.prototype.matches
- = Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;
-}
-
-// for ie
-if (!Element.prototype.closest) {
- Element.prototype.closest = function (s) {
- let el = this;
- do {
- if (el.matches(s)) return el;
- el = el.parentElement || el.parentNode;
- } while (el !== null && el.nodeType === 1);
- return null;
- };
-}
-
-// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////
-
-// for edge/ie
+// for old Edge (before Chromium)
try {
document.querySelector(":scope");
} catch (exception) {