Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
ad4c0ee5
Commit
ad4c0ee5
authored
9 years ago
by
Chris Rebert
Browse files
Options
Download
Email Patches
Plain Diff
Exempt getUID() from ESLint's no-bitwise rule
[skip sauce] [skip validator]
parent
56a6d964
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
js/src/util.js
+2
-0
js/src/util.js
with
2 additions
and
0 deletions
+2
-0
js/src/util.js
+
2
-
0
View file @
ad4c0ee5
...
...
@@ -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
},
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets