aboutsummaryrefslogtreecommitdiff
path: root/js/dist/alert.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/alert.js
parentf734814f6ba6c86673f771b073425ca6f7f72693 (diff)
downloadbootstrap-76d53404b552c9870c3d3bf0e1f8976bb3136f13.tar.xz
bootstrap-76d53404b552c9870c3d3bf0e1f8976bb3136f13.zip
grunt
Diffstat (limited to 'js/dist/alert.js')
-rw-r--r--js/dist/alert.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/js/dist/alert.js b/js/dist/alert.js
index 6c70501fc..4a583a8ae 100644
--- a/js/dist/alert.js
+++ b/js/dist/alert.js
@@ -101,6 +101,8 @@ var Alert = function ($) {
};
Alert.prototype._removeElement = function _removeElement(element) {
+ var _this = this;
+
$(element).removeClass(ClassName.ACTIVE);
if (!Util.supportsTransitionEnd() || !$(element).hasClass(ClassName.FADE)) {
@@ -108,7 +110,9 @@ var Alert = function ($) {
return;
}
- $(element).one(Util.TRANSITION_END, $.proxy(this._destroyElement, this, element)).emulateTransitionEnd(TRANSITION_DURATION);
+ $(element).one(Util.TRANSITION_END, function (event) {
+ return _this._destroyElement(element, event);
+ }).emulateTransitionEnd(TRANSITION_DURATION);
};
Alert.prototype._destroyElement = function _destroyElement(element) {