diff options
| author | GeoSot <[email protected]> | 2021-05-11 10:49:30 +0300 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-05-11 10:49:30 +0300 |
| commit | 9fe36edf683af02574bf6bbd6c9b27de93bd31b1 (patch) | |
| tree | 111d2b788e990a58277ff4543cfd44c5815ac795 /js/src/tooltip.js | |
| parent | 7647b8fe5b77120ba319e7119bb0515d91f734da (diff) | |
| download | bootstrap-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/tooltip.js')
| -rw-r--r-- | js/src/tooltip.js | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/js/src/tooltip.js b/js/src/tooltip.js index 7226d3123..632115d72 100644 --- a/js/src/tooltip.js +++ b/js/src/tooltip.js @@ -155,18 +155,10 @@ class Tooltip extends BaseComponent { return NAME } - static get DATA_KEY() { - return DATA_KEY - } - static get Event() { return Event } - static get EVENT_KEY() { - return EVENT_KEY - } - static get DefaultType() { return DefaultType } @@ -774,6 +766,6 @@ class Tooltip extends BaseComponent { * add .Tooltip to jQuery only if jQuery is present */ -defineJQueryPlugin(NAME, Tooltip) +defineJQueryPlugin(Tooltip) export default Tooltip |
