feat(core): part.getId now takes prefix
This commit is contained in:
parent
f55cd826a7
commit
c1a8943f23
1 changed files with 2 additions and 2 deletions
|
@ -48,10 +48,10 @@ Part.prototype.runHooks = function (hookName, data = false) {
|
|||
}
|
||||
|
||||
/** Returns an unused ID */
|
||||
Part.prototype.getId = function () {
|
||||
Part.prototype.getId = function (prefix = '') {
|
||||
this.freeId += 1
|
||||
|
||||
return '' + this.freeId
|
||||
return prefix + this.freeId
|
||||
}
|
||||
|
||||
/** Returns a value formatted for units provided in settings */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue