1
0
Fork 0

fix(core): Call closure in Part.getId()

This commit is contained in:
Joost De Cock 2022-12-23 15:36:08 +01:00
parent 6da872abe0
commit 94a3d0be50

View file

@ -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
} }
/** /**