mirror of
https://github.com/twbs/bootstrap.git
synced 2025-09-27 22:09:04 +02:00
util: change isRTL
to a function (#32446)
This allows the bundler to tree-shake the function.
This commit is contained in:
@@ -198,7 +198,7 @@ const onDOMContentLoaded = callback => {
|
||||
}
|
||||
}
|
||||
|
||||
const isRTL = document.documentElement.dir === 'rtl'
|
||||
const isRTL = () => document.documentElement.dir === 'rtl'
|
||||
|
||||
const defineJQueryPlugin = (name, plugin) => {
|
||||
onDOMContentLoaded(() => {
|
||||
|
Reference in New Issue
Block a user