diff options
| author | Gaƫl Poupard <[email protected]> | 2020-06-26 17:06:20 +0300 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2020-12-04 07:52:03 +0200 |
| commit | 9488978fb55286ba83e8193a871d1ff9815045b9 (patch) | |
| tree | abb461d46722f107e54156709c88cf37ed9e24a6 /js/src/util | |
| parent | 71ecc3323fb60ea05456470d10d17b614fe6dc04 (diff) | |
| download | bootstrap-9488978fb55286ba83e8193a871d1ff9815045b9.tar.xz bootstrap-9488978fb55286ba83e8193a871d1ff9815045b9.zip | |
feat(RTL): implement RTL
Using RTLCSS directives, renaming things to use logical names and following best practices.
Diffstat (limited to 'js/src/util')
| -rw-r--r-- | js/src/util/index.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/js/src/util/index.js b/js/src/util/index.js index 874827b16..96cadc65b 100644 --- a/js/src/util/index.js +++ b/js/src/util/index.js @@ -186,6 +186,8 @@ const onDOMContentLoaded = callback => { } } +const isRTL = document.documentElement.dir === 'rtl' + export { TRANSITION_END, getUID, @@ -201,5 +203,6 @@ export { noop, reflow, getjQuery, - onDOMContentLoaded + onDOMContentLoaded, + isRTL } |
