aboutsummaryrefslogtreecommitdiff
path: root/js/dist/tab.js
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2016-10-31 21:14:23 -0700
committerMark Otto <[email protected]>2016-10-31 21:14:23 -0700
commit76d53404b552c9870c3d3bf0e1f8976bb3136f13 (patch)
treefd1f0974c01b35b5bf5593d8a14dbf2b1fc91209 /js/dist/tab.js
parentf734814f6ba6c86673f771b073425ca6f7f72693 (diff)
downloadbootstrap-76d53404b552c9870c3d3bf0e1f8976bb3136f13.tar.xz
bootstrap-76d53404b552c9870c3d3bf0e1f8976bb3136f13.zip
grunt
Diffstat (limited to 'js/dist/tab.js')
-rw-r--r--js/dist/tab.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/js/dist/tab.js b/js/dist/tab.js
index d0c5e39a5..a504cb32e 100644
--- a/js/dist/tab.js
+++ b/js/dist/tab.js
@@ -139,10 +139,14 @@ var Tab = function ($) {
// private
Tab.prototype._activate = function _activate(element, container, callback) {
+ var _this2 = this;
+
var active = $(container).find(Selector.ACTIVE_CHILD)[0];
var isTransitioning = callback && Util.supportsTransitionEnd() && (active && $(active).hasClass(ClassName.FADE) || Boolean($(container).find(Selector.FADE_CHILD)[0]));
- var complete = $.proxy(this._transitionComplete, this, element, active, isTransitioning, callback);
+ var complete = function complete() {
+ return _this2._transitionComplete(element, active, isTransitioning, callback);
+ };
if (active && isTransitioning) {
$(active).one(Util.TRANSITION_END, complete).emulateTransitionEnd(TRANSITION_DURATION);