diff options
author | GeoSot <geo.sotis@gmail.com> | 2022-02-19 16:10:47 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-19 16:10:47 +0300 |
commit | 407af8ac7f9296627aebc1e4c5d0ee948f8be1f3 (patch) | |
tree | 1377c19a20a78fcfe2b8515c44967243f0e9307e /js/src/base-component.js | |
parent | 642d756eeaf107bed2baac931933c9350c33f5c1 (diff) |
Make event name helper and use it on tooltip & popover to reduce dist sizes (#35856)
* feat: create eventName getter function in baseComponent
* refactor: use `eventName` getter on tooltip & popover
Diffstat (limited to 'js/src/base-component.js')
-rw-r--r-- | js/src/base-component.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/js/src/base-component.js b/js/src/base-component.js index 4140bf1947..75bb90c326 100644 --- a/js/src/base-component.js +++ b/js/src/base-component.js @@ -76,6 +76,10 @@ class BaseComponent extends Config { static get EVENT_KEY() { return `.${this.DATA_KEY}` } + + static eventName(name) { + return `${name}${this.EVENT_KEY}` + } } export default BaseComponent |