diff options
author | GeoSot <geo.sotis@gmail.com> | 2021-05-11 10:49:30 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-11 10:49:30 +0300 |
commit | 9fe36edf683af02574bf6bbd6c9b27de93bd31b1 (patch) | |
tree | 111d2b788e990a58277ff4543cfd44c5815ac795 /js/src/popover.js | |
parent | 7647b8fe5b77120ba319e7119bb0515d91f734da (diff) |
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/popover.js')
-rw-r--r-- | js/src/popover.js | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/js/src/popover.js b/js/src/popover.js index 58b3623280..c105ee2a14 100644 --- a/js/src/popover.js +++ b/js/src/popover.js @@ -76,18 +76,10 @@ class Popover extends Tooltip { 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 } @@ -166,6 +158,6 @@ class Popover extends Tooltip { * add .Popover to jQuery only if jQuery is present */ -defineJQueryPlugin(NAME, Popover) +defineJQueryPlugin(Popover) export default Popover |