From 7daaf1252a651271f170abc0a7a0f532778aad51 Mon Sep 17 00:00:00 2001 From: Viraj Mahesh Date: Fri, 30 May 2014 09:51:30 +0400 Subject: Do nothing when blank action passed --- objects.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'objects.js') 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 -- cgit v1.3.1