2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-11 18:02:28 +03:00

util: change isRTL to a function (#32446)

This allows the bundler to tree-shake the function.
This commit is contained in:
XhmikosR
2021-02-16 10:14:05 +02:00
committed by GitHub
parent 3602828a90
commit 92434fa30f
5 changed files with 17 additions and 19 deletions
+1 -1
View File
@@ -198,7 +198,7 @@ const onDOMContentLoaded = callback => {
}
}
const isRTL = document.documentElement.dir === 'rtl'
const isRTL = () => document.documentElement.dir === 'rtl'
const defineJQueryPlugin = (name, plugin) => {
onDOMContentLoaded(() => {