2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-05-15 11:59:39 +03:00

Add eslint-plugin-compat

This commit is contained in:
XhmikosR
2021-02-02 21:01:37 +02:00
parent ef21000cbe
commit eee9f86990
5 changed files with 96 additions and 0 deletions
+2
View File
@@ -120,8 +120,10 @@ class Carousel extends BaseComponent {
this._config = this._getConfig(config)
this._indicatorsElement = SelectorEngine.findOne(SELECTOR_INDICATORS, this._element)
/* eslint-disable compat/compat */
this._touchSupported = 'ontouchstart' in document.documentElement || navigator.maxTouchPoints > 0
this._pointerEvent = Boolean(window.PointerEvent)
/* eslint-enable compat/compat */
this._addEventListeners()
}