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

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Rebert <code@chrisrebert.com>2016-06-05 04:21:15 +0300
committerChris Rebert <code@chrisrebert.com>2016-06-05 04:21:15 +0300
commit0f3d427bbdccec8597dff63494d390df6b441c24 (patch)
treef6d0ef48442bd0067210188031bd091aab8fdf16 /js/dist/util.js
parenteb350d1a7c91a42b4d943b13edf9304309920cb7 (diff)
grunt
[ci skip]
Diffstat (limited to 'js/dist/util.js')
-rw-r--r--js/dist/util.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/js/dist/util.js b/js/dist/util.js
index 886f69d75e..8c34de1f08 100644
--- a/js/dist/util.js
+++ b/js/dist/util.js
@@ -17,6 +17,8 @@ var Util = (function ($) {
var transition = false;
+ var MAX_UID = 1000000;
+
var TransitionEndEvent = {
WebkitTransition: 'webkitTransitionEnd',
MozTransition: 'transitionend',
@@ -41,6 +43,7 @@ var Util = (function ($) {
if ($(event.target).is(this)) {
return event.handleObj.handler.apply(this, arguments);
}
+ return undefined;
}
};
}
@@ -102,7 +105,7 @@ var Util = (function ($) {
getUID: function getUID(prefix) {
do {
/* eslint-disable no-bitwise */
- prefix += ~ ~(Math.random() * 1000000); // "~~" acts like a faster Math.floor() here
+ prefix += ~ ~(Math.random() * MAX_UID); // "~~" acts like a faster Math.floor() here
/* eslint-enable no-bitwise */
} while (document.getElementById(prefix));
return prefix;