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 <markd.otto@gmail.com>2016-11-01 07:27:56 +0300
committerGitHub <noreply@github.com>2016-11-01 07:27:56 +0300
commitffaad0a819c6cf1e21d9a9d313673f9d7a260584 (patch)
treeb10702ccb1b5f5759ab11c3ae38d03821d14698d /js/dist/alert.js
parent76d53404b552c9870c3d3bf0e1f8976bb3136f13 (diff)
Responsive display utilities (#20934)
* Explore responsive display utils, but with a twist: lowest breakpoint has no breakpoint modifier in the class name * make floats use the same format, add float-none mixin
Diffstat (limited to 'js/dist/alert.js')
-rw-r--r--js/dist/alert.js14
1 files changed, 5 insertions, 9 deletions
diff --git a/js/dist/alert.js b/js/dist/alert.js
index 4a583a8ae7..4b99701665 100644
--- a/js/dist/alert.js
+++ b/js/dist/alert.js
@@ -4,7 +4,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
/**
* --------------------------------------------------------------------------
- * Bootstrap (v4.0.0-alpha.5): alert.js
+ * Bootstrap (v4.0.0-alpha.4): alert.js
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* --------------------------------------------------------------------------
*/
@@ -18,7 +18,7 @@ var Alert = function ($) {
*/
var NAME = 'alert';
- var VERSION = '4.0.0-alpha.5';
+ var VERSION = '4.0.0-alpha.4';
var DATA_KEY = 'bs.alert';
var EVENT_KEY = '.' + DATA_KEY;
var DATA_API_KEY = '.data-api';
@@ -38,7 +38,7 @@ var Alert = function ($) {
var ClassName = {
ALERT: 'alert',
FADE: 'fade',
- ACTIVE: 'active'
+ IN: 'in'
};
/**
@@ -101,18 +101,14 @@ var Alert = function ($) {
};
Alert.prototype._removeElement = function _removeElement(element) {
- var _this = this;
-
- $(element).removeClass(ClassName.ACTIVE);
+ $(element).removeClass(ClassName.IN);
if (!Util.supportsTransitionEnd() || !$(element).hasClass(ClassName.FADE)) {
this._destroyElement(element);
return;
}
- $(element).one(Util.TRANSITION_END, function (event) {
- return _this._destroyElement(element, event);
- }).emulateTransitionEnd(TRANSITION_DURATION);
+ $(element).one(Util.TRANSITION_END, $.proxy(this._destroyElement, this, element)).emulateTransitionEnd(TRANSITION_DURATION);
};
Alert.prototype._destroyElement = function _destroyElement(element) {