diff --git a/js/src/carousel.js b/js/src/carousel.js index 7d2b4dc508..6443ef094a 100644 --- a/js/src/carousel.js +++ b/js/src/carousel.js @@ -123,7 +123,6 @@ class Carousel extends BaseComponent { this._pointerEvent = Boolean(window.PointerEvent) this._addEventListeners() - Data.setData(element, DATA_KEY, this) } // Getters diff --git a/js/src/collapse.js b/js/src/collapse.js index da3e504d18..feff6c9178 100644 --- a/js/src/collapse.js +++ b/js/src/collapse.js @@ -101,8 +101,6 @@ class Collapse extends BaseComponent { if (this._config.toggle) { this.toggle() } - - Data.setData(element, DATA_KEY, this) } // Getters diff --git a/js/src/dropdown.js b/js/src/dropdown.js index f9c945c33b..5b8ae06454 100644 --- a/js/src/dropdown.js +++ b/js/src/dropdown.js @@ -106,7 +106,6 @@ class Dropdown extends BaseComponent { this._inNavbar = this._detectNavbar() this._addEventListeners() - Data.setData(element, DATA_KEY, this) } // Getters diff --git a/js/src/modal.js b/js/src/modal.js index e3fe487a82..db8345fac1 100644 --- a/js/src/modal.js +++ b/js/src/modal.js @@ -93,7 +93,6 @@ class Modal extends BaseComponent { this._ignoreBackdropClick = false this._isTransitioning = false this._scrollbarWidth = 0 - Data.setData(element, DATA_KEY, this) } // Getters diff --git a/js/src/scrollspy.js b/js/src/scrollspy.js index 4e88a2321c..e3e5e76b97 100644 --- a/js/src/scrollspy.js +++ b/js/src/scrollspy.js @@ -81,8 +81,6 @@ class ScrollSpy extends BaseComponent { this.refresh() this._process() - - Data.setData(element, DATA_KEY, this) } // Getters diff --git a/js/src/toast.js b/js/src/toast.js index 065c6c753c..30df4606af 100644 --- a/js/src/toast.js +++ b/js/src/toast.js @@ -67,7 +67,6 @@ class Toast extends BaseComponent { this._config = this._getConfig(config) this._timeout = null this._setListeners() - Data.setData(element, DATA_KEY, this) } // Getters diff --git a/js/src/tooltip.js b/js/src/tooltip.js index fae6063225..797afb134f 100644 --- a/js/src/tooltip.js +++ b/js/src/tooltip.js @@ -144,7 +144,6 @@ class Tooltip extends BaseComponent { this.tip = null this._setListeners() - Data.setData(element, this.constructor.DATA_KEY, this) } // Getters