vendor/assets/javascripts/alert.js in flashgrid-2.0.1 vs vendor/assets/javascripts/alert.js in flashgrid-2.1.0
- old
+ new
@@ -7,11 +7,11 @@
var dismiss = '[data-dismiss="alert"]'
var Alert = function (el) {
$(el).on('click', dismiss, this.close)
}
- Alert.VERSION = '3.1.1'
+ Alert.VERSION = '3.2.0'
Alert.prototype.close = function (e) {
var $this = $(this)
var selector = $this.attr('data-target')
@@ -39,10 +39,10 @@
$parent.detach().trigger('closed.bs.alert').remove()
}
$.support.transition && $parent.hasClass('fade') ?
$parent
- .one($.support.transition.end, removeElement)
+ .one('bsTransitionEnd', removeElement)
.emulateTransitionEnd(150) :
removeElement()
}
\ No newline at end of file