Skip to content

Commit

Permalink
Remove unneccessory _getCustomClass method
Browse files Browse the repository at this point in the history
  • Loading branch information
rohit2sharma95 committed Nov 24, 2020
1 parent 6f58383 commit 2a45ea9
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions js/src/tooltip.js
Expand Up @@ -286,7 +286,7 @@ class Tooltip {
this._popper = new Popper(this.element, tip, this._getPopperConfig(attachment))

$(tip).addClass(CLASS_NAME_SHOW)
$(tip).addClass(this._getCustomClass())
$(tip).addClass(this.config.customClass)

// If this is a touch-enabled device we add extra
// empty mouseover listeners to the body's immediate children;
Expand Down Expand Up @@ -734,10 +734,6 @@ class Tooltip {
this.config.animation = initConfigAnimation
}

_getCustomClass() {
return this.element.getAttribute('data-custom-class') || this.config.customClass
}

// Static

static _jQueryInterface(config) {
Expand Down

0 comments on commit 2a45ea9

Please sign in to comment.