fix(core): Call closure in Part.getId()
This commit is contained in:
parent
6da872abe0
commit
94a3d0be50
1 changed files with 1 additions and 3 deletions
|
@ -85,9 +85,7 @@ Part.prototype.attr = function (name, value, overwrite = false) {
|
|||
* @return {string} id - A free ID to use
|
||||
*/
|
||||
Part.prototype.getId = function (prefix = '') {
|
||||
this.freeId += 1
|
||||
|
||||
return prefix + this.freeId
|
||||
return this.__getIdClosure()(prefix)
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue