mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-06-17 01:30:45 -04:00
style(sprites): added documentation for sprite.js duplicate method change
This commit is contained in:
parent
d4a6e3d669
commit
3ac8451461
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue