aboutsummaryrefslogtreecommitdiff
path: root/js/src/alert.js
diff options
context:
space:
mode:
authorJacob Thornton <[email protected]>2015-08-18 17:01:56 -0700
committerJacob Thornton <[email protected]>2015-08-18 17:01:56 -0700
commit19e43b62ed078bf725ec4dd4b8f8a4e4a24616a3 (patch)
treea61cf5903519892e7af47ce0e2dda7925db8ec54 /js/src/alert.js
parent409ede0a35b9147f4f57013f898aacdfbb3a2adc (diff)
downloadbootstrap-19e43b62ed078bf725ec4dd4b8f8a4e4a24616a3.tar.xz
bootstrap-19e43b62ed078bf725ec4dd4b8f8a4e4a24616a3.zip
use proxy not bind in alert
Diffstat (limited to 'js/src/alert.js')
-rw-r--r--js/src/alert.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/alert.js b/js/src/alert.js
index eda74d706..e58a31175 100644
--- a/js/src/alert.js
+++ b/js/src/alert.js
@@ -116,7 +116,7 @@ const Alert = (($) => {
}
$(element)
- .one(Util.TRANSITION_END, this._destroyElement.bind(this, element))
+ .one(Util.TRANSITION_END, $.proxy(this._destroyElement, this, element))
.emulateTransitionEnd(TRANSITION_DURATION)
}