aboutsummaryrefslogtreecommitdiff
path: root/js/src/tooltip.js
diff options
context:
space:
mode:
authorfat <[email protected]>2015-05-12 16:52:54 -0700
committerfat <[email protected]>2015-05-12 16:52:54 -0700
commitab1578465aee4a776412b48f16bfefca79381919 (patch)
tree0766caa82a67cd6328273aa5f2a826c579d44d32 /js/src/tooltip.js
parenta58febf71a5eac2161ce2db08c7d723755ed1163 (diff)
downloadbootstrap-ab1578465aee4a776412b48f16bfefca79381919.tar.xz
bootstrap-ab1578465aee4a776412b48f16bfefca79381919.zip
grunt test-js, grunt dist-js now working
Diffstat (limited to 'js/src/tooltip.js')
-rw-r--r--js/src/tooltip.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/src/tooltip.js b/js/src/tooltip.js
index a04085130..1bd018c0f 100644
--- a/js/src/tooltip.js
+++ b/js/src/tooltip.js
@@ -373,7 +373,7 @@ const Tooltip = (($) => {
$(this.element).on(
this.constructor.Event.CLICK,
this.config.selector,
- this.toggle.bind(this)
+ $.proxy(this.toggle, this)
)
} else if (trigger !== Trigger.MANUAL) {
@@ -388,12 +388,12 @@ const Tooltip = (($) => {
.on(
eventIn,
this.config.selector,
- this._enter.bind(this)
+ $.proxy(this._enter, this)
)
.on(
eventOut,
this.config.selector,
- this._leave.bind(this)
+ $.proxy(this._leave, this)
)
}
})