mirror of
https://github.com/twbs/bootstrap.git
synced 2025-12-28 05:33:57 +00:00
Merge f5992ec218 into 4449c7465e
This commit is contained in:
commit
ccbcc04433
@ -5,7 +5,6 @@
|
||||
* --------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
const MAX_UID = 1_000_000
|
||||
const MILLISECONDS_MULTIPLIER = 1000
|
||||
const TRANSITION_END = 'transitionend'
|
||||
|
||||
@ -36,9 +35,10 @@ const toType = object => {
|
||||
* Public Util API
|
||||
*/
|
||||
|
||||
let idCount = 0
|
||||
const getUID = prefix => {
|
||||
do {
|
||||
prefix += Math.floor(Math.random() * MAX_UID)
|
||||
prefix += idCount++
|
||||
} while (document.getElementById(prefix))
|
||||
|
||||
return prefix
|
||||
|
||||
Loading…
Reference in New Issue
Block a user