diff options
| author | Chris Rebert <[email protected]> | 2016-06-04 18:21:15 -0700 |
|---|---|---|
| committer | Chris Rebert <[email protected]> | 2016-06-04 18:21:15 -0700 |
| commit | 0f3d427bbdccec8597dff63494d390df6b441c24 (patch) | |
| tree | f6d0ef48442bd0067210188031bd091aab8fdf16 /js/dist/util.js | |
| parent | eb350d1a7c91a42b4d943b13edf9304309920cb7 (diff) | |
| download | bootstrap-0f3d427bbdccec8597dff63494d390df6b441c24.tar.xz bootstrap-0f3d427bbdccec8597dff63494d390df6b441c24.zip | |
grunt
[ci skip]
Diffstat (limited to 'js/dist/util.js')
| -rw-r--r-- | js/dist/util.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/js/dist/util.js b/js/dist/util.js index 886f69d75..8c34de1f0 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; |
