Skip to content

Commit

Permalink
fix : replaced postfix increments to prefix increments.
Browse files Browse the repository at this point in the history
  • Loading branch information
MasatoMakino committed Apr 18, 2021
1 parent 27a9fd9 commit 769e281
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/PUID.js
Expand Up @@ -2,7 +2,7 @@ export default {
_id: 0,
_uids: new Map(),
getNewId: function() {
return `PUID_${this._id++}`;
return `PUID_${++this._id}`;
},
id: function(functionOrObject) {
if (this._uids.has(functionOrObject)) {
Expand Down

0 comments on commit 769e281

Please sign in to comment.