mirror of
https://github.com/twbs/bootstrap.git
synced 2025-09-26 05:19:15 +02:00
giant refactor - all spec passing again...
This commit is contained in:
6
js/bootstrap-alert.js
vendored
6
js/bootstrap-alert.js
vendored
@@ -27,7 +27,7 @@
|
||||
|
||||
var dismiss = '[data-dismiss="alert"]'
|
||||
, Alert = function ( el ) {
|
||||
$(el).delegate(dismiss, 'click', this.close)
|
||||
$(el).on('click', dismiss, this.close)
|
||||
}
|
||||
|
||||
Alert.prototype = {
|
||||
@@ -72,7 +72,7 @@
|
||||
* ============== */
|
||||
|
||||
$(function () {
|
||||
$('body').delegate(dismiss, 'click.alert.data-api', Alert.prototype.close)
|
||||
$('body').on('click.alert.data-api', dismiss, Alert.prototype.close)
|
||||
})
|
||||
|
||||
}( window.jQuery || window.ender )
|
||||
}( window.jQuery )
|
Reference in New Issue
Block a user