1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-09-28 06:20:15 +02:00

Add event delegation + fix EventHandler.one

This commit is contained in:
Johann-S
2017-08-23 12:01:38 +02:00
committed by XhmikosR
parent 00ca781171
commit a3398fffd6
2 changed files with 19 additions and 13 deletions

View File

@@ -153,12 +153,7 @@ class Alert {
* Data Api implementation
* ------------------------------------------------------------------------
*/
$(document).on(
Event.CLICK_DATA_API,
Selector.DISMISS,
Alert._handleDismiss(new Alert())
)
EventHandler.on(document, Event.CLICK_DATA_API, Selector.DISMISS, Alert._handleDismiss(new Alert()))
/**
* ------------------------------------------------------------------------