Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap-rubygem.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'assets/javascripts/bootstrap/util.js')
-rw-r--r--assets/javascripts/bootstrap/util.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/assets/javascripts/bootstrap/util.js b/assets/javascripts/bootstrap/util.js
index a307e80..c8da76b 100644
--- a/assets/javascripts/bootstrap/util.js
+++ b/assets/javascripts/bootstrap/util.js
@@ -101,7 +101,9 @@ var Util = (function ($) {
getUID: function 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;
},