mirror of
https://github.com/twbs/bootstrap.git
synced 2025-09-26 05:19:15 +02:00
Remove jQuery from alert.js and add .alert only if jQuery is available
This commit is contained in:
@@ -19,7 +19,8 @@ if (typeof window.CustomEvent !== 'function') {
|
||||
window.CustomEvent = (event, params) => {
|
||||
params = params || {
|
||||
bubbles: false,
|
||||
cancelable: false
|
||||
cancelable: false,
|
||||
detail: null
|
||||
}
|
||||
const evt = document.createEvent('CustomEvent')
|
||||
evt.initCustomEvent(event, params.bubbles, params.cancelable, params.detail)
|
||||
@@ -101,6 +102,8 @@ function bootstrapDelegationHandler(selector, fn) {
|
||||
}
|
||||
}
|
||||
}
|
||||
// To please ESLint
|
||||
return null
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user