diff options
| author | Rohit Sharma <[email protected]> | 2020-11-29 23:18:00 +0530 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2020-11-29 20:58:26 +0200 |
| commit | 04674f88b0a2f7ad21bbe36a8d18b08357c8eafa (patch) | |
| tree | f5893b4cff1c591df853c21636029cf06fafe305 /js/src | |
| parent | 4999c3dbbc87e125c4b2bde405e4ecdccc5d0b18 (diff) | |
| download | bootstrap-04674f88b0a2f7ad21bbe36a8d18b08357c8eafa.tar.xz bootstrap-04674f88b0a2f7ad21bbe36a8d18b08357c8eafa.zip | |
Remove setData from construtors (#32264)
Diffstat (limited to 'js/src')
| -rw-r--r-- | js/src/carousel.js | 1 | ||||
| -rw-r--r-- | js/src/collapse.js | 2 | ||||
| -rw-r--r-- | js/src/dropdown.js | 1 | ||||
| -rw-r--r-- | js/src/modal.js | 1 | ||||
| -rw-r--r-- | js/src/scrollspy.js | 2 | ||||
| -rw-r--r-- | js/src/toast.js | 1 | ||||
| -rw-r--r-- | js/src/tooltip.js | 1 |
7 files changed, 0 insertions, 9 deletions
diff --git a/js/src/carousel.js b/js/src/carousel.js index 7d2b4dc50..6443ef094 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 da3e504d1..feff6c917 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 f9c945c33..5b8ae0645 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 e3fe487a8..db8345fac 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 4e88a2321..e3e5e76b9 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 065c6c753..30df4606a 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 fae606322..797afb134 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 |
