aboutsummaryrefslogtreecommitdiff
path: root/js/src/dropdown.js
diff options
context:
space:
mode:
authoralpadev <[email protected]>2021-03-02 15:55:44 +0100
committerGitHub <[email protected]>2021-03-02 16:55:44 +0200
commit48a95f7280735d6f8962fe8b17975b03e351710c (patch)
treece88821218c34186f610929525b34015885ba23c /js/src/dropdown.js
parent6d93a1371a7edb823f7d625c6f4489f37c06aac1 (diff)
downloadbootstrap-48a95f7280735d6f8962fe8b17975b03e351710c.tar.xz
bootstrap-48a95f7280735d6f8962fe8b17975b03e351710c.zip
refactor: use a Map instead of an Object in dom/data (#32180)
Co-authored-by: XhmikosR <[email protected]> Co-authored-by: Rohit Sharma <[email protected]>
Diffstat (limited to 'js/src/dropdown.js')
-rw-r--r--js/src/dropdown.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/src/dropdown.js b/js/src/dropdown.js
index 590c74801..fea0b1919 100644
--- a/js/src/dropdown.js
+++ b/js/src/dropdown.js
@@ -357,7 +357,7 @@ class Dropdown extends BaseComponent {
// Static
static dropdownInterface(element, config) {
- let data = Data.getData(element, DATA_KEY)
+ let data = Data.get(element, DATA_KEY)
const _config = typeof config === 'object' ? config : null
if (!data) {
@@ -387,7 +387,7 @@ class Dropdown extends BaseComponent {
const toggles = SelectorEngine.find(SELECTOR_DATA_TOGGLE)
for (let i = 0, len = toggles.length; i < len; i++) {
- const context = Data.getData(toggles[i], DATA_KEY)
+ const context = Data.get(toggles[i], DATA_KEY)
const relatedTarget = {
relatedTarget: toggles[i]
}