From 2a45ea95b5448c25420103522cfcf1ccac0729d5 Mon Sep 17 00:00:00 2001 From: Rohit Sharma Date: Sat, 21 Nov 2020 16:04:54 +0530 Subject: [PATCH] Remove unneccessory `_getCustomClass` method --- js/src/tooltip.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/js/src/tooltip.js b/js/src/tooltip.js index 0b74eb800d8e..9a37e73d1205 100644 --- a/js/src/tooltip.js +++ b/js/src/tooltip.js @@ -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; @@ -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) {