Commit ad4c0ee5 authored by Chris Rebert's avatar Chris Rebert
Browse files

Exempt getUID() from ESLint's no-bitwise rule

[skip sauce]
[skip validator]
parent 56a6d964
Showing with 2 additions and 0 deletions
+2 -0
......@@ -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
},
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment