widgets: remove useless method in base class
This commit is contained in:
parent
779fd4b8b1
commit
3b1d5922a8
1 changed files with 1 additions and 6 deletions
|
|
@ -19,11 +19,6 @@ module.exports = class _widgets_base extends EventEmitter {
|
|||
|
||||
}
|
||||
|
||||
static createHash() {
|
||||
|
||||
return shortid.generate()
|
||||
}
|
||||
|
||||
constructor(options={}) {
|
||||
|
||||
super()
|
||||
|
|
@ -33,7 +28,7 @@ module.exports = class _widgets_base extends EventEmitter {
|
|||
this.props = options.props
|
||||
this.parent = options.root ? widgetManager : options.parent
|
||||
this.parentNode = options.parentNode
|
||||
this.hash = _widgets_base.createHash()
|
||||
this.hash = shortid.generate()
|
||||
this.childrenHashes = []
|
||||
|
||||
if (options.container) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue