summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorViraj Mahesh <virajmahesh@gmail.com>2014-02-25 17:34:31 -0800
committerViraj Mahesh <virajmahesh@gmail.com>2014-02-25 17:34:31 -0800
commite889dc224e68a634e1ecfc64d39f5b5432c4322e (patch)
treeb97bca4411171eb6374eea5d038d8ee2229e7345
parent341d27092e3381d15f8d2c041de8dbd9ec61a29b (diff)
downloadsnap-byow-e889dc224e68a634e1ecfc64d39f5b5432c4322e.tar.gz
snap-byow-e889dc224e68a634e1ecfc64d39f5b5432c4322e.zip
Fixed errors that arose from not using fullImageClassic()
-rw-r--r--objects.js9
1 files changed, 4 insertions, 5 deletions
diff --git a/objects.js b/objects.js
index f7ce467..1c55231 100644
--- a/objects.js
+++ b/objects.js
@@ -3703,12 +3703,11 @@ SpriteMorph.prototype.reactToDropOf = function (morph, hand) {
};
SpriteMorph.prototype.doScreenshot = function() {
- console.log('Testing screenshot');
- var parent = this.parentThatIsA(StageMorph);
- var image = parent.fullImageClassic();
+ var stage = this.parentThatIsA(StageMorph);
+ var canvas = stage.fullImageClassic();
var ide = this.parentThatIsA(IDE_Morph);
- var costume = new Costume(image);
- ide.currentSprite.addCostume(image);
+ var costume = new Costume(canvas, "");
+ ide.currentSprite.addCostume(costume);
};
// SpriteHighlightMorph /////////////////////////////////////////////////