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
|
* @return {string} id - A free ID to use
|
||||||
*/
|
*/
|
||||||
Part.prototype.getId = function (prefix = '') {
|
Part.prototype.getId = function (prefix = '') {
|
||||||
this.freeId += 1
|
return this.__getIdClosure()(prefix)
|
||||||
|
|
||||||
return prefix + this.freeId
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue