2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-14 18:42:30 +03:00

Decouple BackDrop from modal (#32439)

* Create backdrop.js util

* revert breaking changes

remove PromiseTimout usage

revert class name

* one more test | change bundlewatch.config

* add config obj to backdrop helper | tests for rootElement | use transitionend helper

* Minor tweaks — Renaming

Co-authored-by: Rohit Sharma <rohit2sharma95@gmail.com>
This commit is contained in:
GeoSot
2021-04-14 23:28:50 +03:00
committed by GitHub
parent 0122e020d6
commit 80085a12f6
7 changed files with 386 additions and 70 deletions
+8 -1
View File
@@ -230,6 +230,12 @@ const defineJQueryPlugin = (name, plugin) => {
})
}
const execute = callback => {
if (typeof callback === 'function') {
callback()
}
}
export {
getUID,
getSelectorFromElement,
@@ -247,5 +253,6 @@ export {
getjQuery,
onDOMContentLoaded,
isRTL,
defineJQueryPlugin
defineJQueryPlugin,
execute
}