aboutsummaryrefslogtreecommitdiffstats
path: root/bower_components/bootstrap/js/alert.js
diff options
context:
space:
mode:
authorLibravatarAgustin Henze <tin@sluc.org.ar>2014-10-21 10:33:17 -0300
committerLibravatarAgustin Henze <tin@sluc.org.ar>2014-10-21 10:33:17 -0300
commit2d14c4b384c7000e264674a92b16e010a510ac05 (patch)
tree7676db09f338e46e053170b1c9f7594120b9d434 /bower_components/bootstrap/js/alert.js
parent2d2e97ac540c94e15ac5eccc7d32f3dfb3eea1bc (diff)
parent5ec02211214350ee558fd9f6bb052264fd24f75e (diff)
Merge tag 'upstream/7.1.0'
Upstream version 7.1.0
Diffstat (limited to 'bower_components/bootstrap/js/alert.js')
-rw-r--r--bower_components/bootstrap/js/alert.js16
1 files changed, 10 insertions, 6 deletions
diff --git a/bower_components/bootstrap/js/alert.js b/bower_components/bootstrap/js/alert.js
index 516fe4f..0efd92c 100644
--- a/bower_components/bootstrap/js/alert.js
+++ b/bower_components/bootstrap/js/alert.js
@@ -1,5 +1,5 @@
/* ========================================================================
- * Bootstrap: alert.js v3.1.1
+ * Bootstrap: alert.js v3.2.0
* http://getbootstrap.com/javascript/#alerts
* ========================================================================
* Copyright 2011-2014 Twitter, Inc.
@@ -18,6 +18,8 @@
$(el).on('click', dismiss, this.close)
}
+ Alert.VERSION = '3.2.0'
+
Alert.prototype.close = function (e) {
var $this = $(this)
var selector = $this.attr('data-target')
@@ -42,12 +44,13 @@
$parent.removeClass('in')
function removeElement() {
- $parent.trigger('closed.bs.alert').remove()
+ // detach from parent, fire event then clean up data
+ $parent.detach().trigger('closed.bs.alert').remove()
}
$.support.transition && $parent.hasClass('fade') ?
$parent
- .one($.support.transition.end, removeElement)
+ .one('bsTransitionEnd', removeElement)
.emulateTransitionEnd(150) :
removeElement()
}
@@ -56,9 +59,7 @@
// ALERT PLUGIN DEFINITION
// =======================
- var old = $.fn.alert
-
- $.fn.alert = function (option) {
+ function Plugin(option) {
return this.each(function () {
var $this = $(this)
var data = $this.data('bs.alert')
@@ -68,6 +69,9 @@
})
}
+ var old = $.fn.alert
+
+ $.fn.alert = Plugin
$.fn.alert.Constructor = Alert