mirror of
https://github.com/twbs/bootstrap.git
synced 2025-07-04 00:01:57 -04:00
Compare commits
3 Commits
43d8b58246
...
8019a8df27
Author | SHA1 | Date | |
---|---|---|---|
|
8019a8df27 | ||
|
f5992ec218 | ||
|
a1339d0d2d |
@ -5,7 +5,6 @@
|
|||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const MAX_UID = 1_000_000
|
|
||||||
const MILLISECONDS_MULTIPLIER = 1000
|
const MILLISECONDS_MULTIPLIER = 1000
|
||||||
const TRANSITION_END = 'transitionend'
|
const TRANSITION_END = 'transitionend'
|
||||||
|
|
||||||
@ -36,9 +35,10 @@ const toType = object => {
|
|||||||
* Public Util API
|
* Public Util API
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
let idCount = 0
|
||||||
const getUID = prefix => {
|
const getUID = prefix => {
|
||||||
do {
|
do {
|
||||||
prefix += Math.floor(Math.random() * MAX_UID)
|
prefix += idCount++
|
||||||
} while (document.getElementById(prefix))
|
} while (document.getElementById(prefix))
|
||||||
|
|
||||||
return prefix
|
return prefix
|
||||||
|
Loading…
x
Reference in New Issue
Block a user