aboutsummaryrefslogtreecommitdiff
path: root/js/src/dropdown.js
diff options
context:
space:
mode:
authorGeoSot <[email protected]>2021-05-11 10:49:30 +0300
committerGitHub <[email protected]>2021-05-11 10:49:30 +0300
commit9fe36edf683af02574bf6bbd6c9b27de93bd31b1 (patch)
tree111d2b788e990a58277ff4543cfd44c5815ac795 /js/src/dropdown.js
parent7647b8fe5b77120ba319e7119bb0515d91f734da (diff)
downloadbootstrap-9fe36edf683af02574bf6bbd6c9b27de93bd31b1.tar.xz
bootstrap-9fe36edf683af02574bf6bbd6c9b27de93bd31b1.zip
Extract static `DATA_KEY` & `EVENT_KEY` to base-component (#33635)
* Force each plugin that extends base-components to implement a static method `NAME()` * Remove redundant `NAME` argument from 'Utils.defineJQueryPlugin' & fix test
Diffstat (limited to 'js/src/dropdown.js')
-rw-r--r--js/src/dropdown.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/src/dropdown.js b/js/src/dropdown.js
index f56ab201b..8f501d811 100644
--- a/js/src/dropdown.js
+++ b/js/src/dropdown.js
@@ -116,8 +116,8 @@ class Dropdown extends BaseComponent {
return DefaultType
}
- static get DATA_KEY() {
- return DATA_KEY
+ static get NAME() {
+ return NAME
}
// Public
@@ -530,6 +530,6 @@ EventHandler.on(document, EVENT_CLICK_DATA_API, SELECTOR_DATA_TOGGLE, function (
* add .Dropdown to jQuery only if jQuery is present
*/
-defineJQueryPlugin(NAME, Dropdown)
+defineJQueryPlugin(Dropdown)
export default Dropdown