aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Rebert <[email protected]>2015-11-30 23:53:25 -0800
committerChris Rebert <[email protected]>2015-12-24 18:53:08 -0700
commitad4c0ee52f6b6f01d3d55bed4f54e6f788f44cd5 (patch)
tree7e8beafedfc445c52219aba50ff708cc7751d45d
parent56a6d964e0b2339f11893cd5eb17e84f2b60e5b2 (diff)
downloadbootstrap-ad4c0ee52f6b6f01d3d55bed4f54e6f788f44cd5.tar.xz
bootstrap-ad4c0ee52f6b6f01d3d55bed4f54e6f788f44cd5.zip
Exempt getUID() from ESLint's no-bitwise rule
[skip sauce] [skip validator]
-rw-r--r--js/src/util.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/js/src/util.js b/js/src/util.js
index 5cb8f810b..dba6e9bd6 100644
--- a/js/src/util.js
+++ b/js/src/util.js
@@ -99,7 +99,9 @@ const Util = (($) => {
getUID(prefix) {
do {
+ /* eslint-disable no-bitwise */
prefix += ~~(Math.random() * 1000000) // "~~" acts like a faster Math.floor() here
+ /* eslint-enable no-bitwise */
} while (document.getElementById(prefix))
return prefix
},