summaryrefslogtreecommitdiff
path: root/objects.js
diff options
context:
space:
mode:
authorViraj Mahesh <virajmahesh@gmail.com>2014-02-25 17:01:09 -0800
committerViraj Mahesh <virajmahesh@gmail.com>2014-02-25 17:01:09 -0800
commit341d27092e3381d15f8d2c041de8dbd9ec61a29b (patch)
tree5438fc56a5c39675afe15bbd4de2fbebad09686b /objects.js
parentdc4e9a5c1c4a0d3bc7a585bf6f8878dee830d040 (diff)
downloadsnap-byow-341d27092e3381d15f8d2c041de8dbd9ec61a29b.tar.gz
snap-byow-341d27092e3381d15f8d2c041de8dbd9ec61a29b.zip
Fixed incomplete code
Diffstat (limited to 'objects.js')
-rw-r--r--objects.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/objects.js b/objects.js
index c357f73..f7ce467 100644
--- a/objects.js
+++ b/objects.js
@@ -3706,6 +3706,9 @@ SpriteMorph.prototype.doScreenshot = function() {
console.log('Testing screenshot');
var parent = this.parentThatIsA(StageMorph);
var image = parent.fullImageClassic();
+ var ide = this.parentThatIsA(IDE_Morph);
+ var costume = new Costume(image);
+ ide.currentSprite.addCostume(image);
};
// SpriteHighlightMorph /////////////////////////////////////////////////