summaryrefslogtreecommitdiff
path: root/objects.js
diff options
context:
space:
mode:
authorViraj Mahesh <virajmahesh@gmail.com>2014-03-07 15:05:50 -0800
committerViraj Mahesh <virajmahesh@gmail.com>2014-03-07 15:05:50 -0800
commit4888ecb9ec74b52c606e6dc7dbaf54119b553f85 (patch)
tree41d2be4b71ba0920c2674bfe61b4a32957c9a9d9 /objects.js
parent8a74747cd735f04f9ce7ab859e8f88642fea1ffd (diff)
downloadsnap-yow-4888ecb9ec74b52c606e6dc7dbaf54119b553f85.tar.gz
snap-yow-4888ecb9ec74b52c606e6dc7dbaf54119b553f85.zip
Use this.addCostume instead of IDE
Diffstat (limited to 'objects.js')
-rw-r--r--objects.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/objects.js b/objects.js
index 2c51547..07b40cc 100644
--- a/objects.js
+++ b/objects.js
@@ -3717,7 +3717,7 @@ SpriteMorph.prototype.doScreenshot = function (data) {
ide = this.parentThatIsA(IDE_Morph),
screenshotName = data,
costume = new Costume(canvas, screenshotName);
- ide.currentSprite.addCostume(costume);
+ this.addCostume(costume);
};
// SpriteHighlightMorph /////////////////////////////////////////////////