style(sprites): added documentation for sprite.js duplicate method change

This commit is contained in:
Victor-Crawshaw 2024-12-08 19:39:04 -05:00
parent d4a6e3d669
commit 3ac8451461

View file

@ -151,6 +151,7 @@ class Sprite {
newSprite.blocks.createBlock(block);
});
// Logic to handle new sprite retaining the comments from the current sprite
Object.keys(this.comments).forEach(commentId => {
const newComment = this.comments[commentId];
newSprite.comments[newComment.id] = newComment;