aboutsummaryrefslogtreecommitdiff
path: root/js/src
diff options
context:
space:
mode:
authorlbryant <[email protected]>2015-08-20 01:03:29 -0400
committerlbryant <[email protected]>2015-08-20 01:03:29 -0400
commit926fb111581e9854d4c50b5f5e0f6876d7cbf176 (patch)
tree11b8057c33a6a2366472ab52d21468565896e0a4 /js/src
parent6b1cf58d58043f5906b65314c0322406c3763258 (diff)
downloadbootstrap-926fb111581e9854d4c50b5f5e0f6876d7cbf176.tar.xz
bootstrap-926fb111581e9854d4c50b5f5e0f6876d7cbf176.zip
use Tether addTargetClasses: false option instead of manually removing them
Diffstat (limited to 'js/src')
-rw-r--r--js/src/tooltip.js19
1 files changed, 7 insertions, 12 deletions
diff --git a/js/src/tooltip.js b/js/src/tooltip.js
index a65caf26e..0af63c981 100644
--- a/js/src/tooltip.js
+++ b/js/src/tooltip.js
@@ -270,12 +270,13 @@ const Tooltip = (($) => {
this._tether = new Tether({
attachment,
- element : tip,
- target : this.element,
- classes : TetherClass,
- classPrefix : CLASS_PREFIX,
- offset : this.config.offset,
- constraints : this.config.constraints
+ element : tip,
+ target : this.element,
+ classes : TetherClass,
+ classPrefix : CLASS_PREFIX,
+ offset : this.config.offset,
+ constraints : this.config.constraints,
+ addTargetClasses: false
})
Util.reflow(tip)
@@ -384,12 +385,6 @@ const Tooltip = (($) => {
cleanupTether() {
if (this._tether) {
this._tether.destroy()
-
- // clean up after tether's junk classes
- // remove after they fix issue
- // (https://github.com/HubSpot/tether/issues/36)
- $(this.element).removeClass(this._removeTetherClasses)
- $(this.tip).removeClass(this._removeTetherClasses)
}
}