Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <markdotto@gmail.com>2016-11-01 07:14:23 +0300
committerMark Otto <markdotto@gmail.com>2016-11-01 07:14:23 +0300
commit76d53404b552c9870c3d3bf0e1f8976bb3136f13 (patch)
treefd1f0974c01b35b5bf5593d8a14dbf2b1fc91209 /js/dist/alert.js
parentf734814f6ba6c86673f771b073425ca6f7f72693 (diff)
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 6c70501fc8..4a583a8ae7 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) {