uuid: fix id generation
This commit is contained in:
parent
23669c859e
commit
d10d1e4cd2
2 changed files with 3 additions and 3 deletions
|
|
@ -1,5 +1,5 @@
|
|||
var EventEmitter = require('wolfy87-eventemitter'),
|
||||
uuid = require('nanoid')()
|
||||
uuid = require('nanoid/generate')('0123456789abcdefghijklmnopqrstuvwxyABCDEFGHIJKLMNOPQRSTUVWXYZ', 10)
|
||||
|
||||
var reconnectInterval = 5000,
|
||||
hearbeatInterval = 25000,
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
var EventEmitter = require('../../events/event-emitter'),
|
||||
osc = require('../../osc'),
|
||||
nanoid = require('nanoid'),
|
||||
nanoid = require('nanoid/generate'),
|
||||
widgetManager = require('../../managers/widgets'),
|
||||
{math} = require('../utils'),
|
||||
scopeCss = require('scope-css'),
|
||||
|
|
@ -46,7 +46,7 @@ class Widget extends EventEmitter {
|
|||
this.parsers = {}
|
||||
this.parent = options.root ? widgetManager : options.parent
|
||||
this.parentNode = options.parentNode
|
||||
this.hash = nanoid(10)
|
||||
this.hash = nanoid('abcdefghijklmnopqrstuvwxyABCDEFGHIJKLMNOPQRSTUVWXYZ', 10)
|
||||
this.childrenHashes = []
|
||||
this.reCreateOptions = options.reCreateOptions
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue