From 19e43b62ed078bf725ec4dd4b8f8a4e4a24616a3 Mon Sep 17 00:00:00 2001 From: Jacob Thornton Date: Tue, 18 Aug 2015 17:01:56 -0700 Subject: use proxy not bind in alert --- dist/js/bootstrap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dist/js/bootstrap.js') diff --git a/dist/js/bootstrap.js b/dist/js/bootstrap.js index c5cf3fd6d..9be1d7515 100644 --- a/dist/js/bootstrap.js +++ b/dist/js/bootstrap.js @@ -296,7 +296,7 @@ var Alert = (function ($) { return; } - $(element).one(Util.TRANSITION_END, this._destroyElement.bind(this, element)).emulateTransitionEnd(TRANSITION_DURATION); + $(element).one(Util.TRANSITION_END, $.proxy(this._destroyElement, this, element)).emulateTransitionEnd(TRANSITION_DURATION); } }, { key: '_destroyElement', -- cgit v1.2.3