1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-09-26 05:19:15 +02:00

Remove IE compatibility JS code

This commit is contained in:
Johann-S
2020-03-09 14:34:07 +01:00
committed by XhmikosR
parent bc3f82863b
commit 47aef7b2c6
5 changed files with 7 additions and 83 deletions

View File

@@ -5,7 +5,7 @@
* --------------------------------------------------------------------------
*/
import { find as findFn, findOne, matches, closest } from './polyfill'
import { find as findFn, findOne } from './polyfill'
import { makeArray } from '../util/index'
/**
@@ -18,7 +18,7 @@ const NODE_TEXT = 3
const SelectorEngine = {
matches(element, selector) {
return matches.call(element, selector)
return element.matches(selector)
},
find(selector, element = document.documentElement) {
@@ -52,7 +52,7 @@ const SelectorEngine = {
},
closest(element, selector) {
return closest.call(element, selector)
return element.closest(selector)
},
prev(element, selector) {