summaryrefslogtreecommitdiff
path: root/objects.js
diff options
context:
space:
mode:
Diffstat (limited to 'objects.js')
-rw-r--r--objects.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/objects.js b/objects.js
index 07b40cc..25e94fc 100644
--- a/objects.js
+++ b/objects.js
@@ -3714,9 +3714,7 @@ SpriteMorph.prototype.doScreenshot = function (data) {
}
var stage = this.parentThatIsA(StageMorph),
canvas = stage.fullImageClassic(),
- ide = this.parentThatIsA(IDE_Morph),
- screenshotName = data,
- costume = new Costume(canvas, screenshotName);
+ costume = new Costume(canvas, data);
this.addCostume(costume);
};