summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorViraj Mahesh <virajmahesh@gmail.com>2014-05-30 09:51:30 +0400
committerViraj Mahesh <virajmahesh@gmail.com>2014-05-30 09:51:30 +0400
commit7daaf1252a651271f170abc0a7a0f532778aad51 (patch)
treecad1101584f7798396c7a1e1c041be485a0ddb94
parent209f05dfffa55832da56a7cb4a53d23bd97ce7c4 (diff)
downloadsnap-yow-7daaf1252a651271f170abc0a7a0f532778aad51.tar.gz
snap-yow-7daaf1252a651271f170abc0a7a0f532778aad51.zip
Do nothing when blank action passed
-rw-r--r--objects.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/objects.js b/objects.js
index fb1804e..4b1b359 100644
--- a/objects.js
+++ b/objects.js
@@ -3741,7 +3741,9 @@ SpriteMorph.prototype.doScreenshot = function (imgSource, data) {
stage = this.parentThatIsA(StageMorph),
costume;
data = this.newCostumeName(data);
- //data = this.newCostumeNameCached(data); // Uncomment to profile
+ if (imgSource[0] === undefined) {
+ return;
+ }
if (imgSource[0] === "pen trails") {
canvas = stage.trailsCanvas;
costume = new Costume(canvas, data).copy(); // Copy is required to prevent mutation