From 95a815b6d63b57f46a72be25b9723366f4af76bd Mon Sep 17 00:00:00 2001 From: Nathan Dinsmore Date: Wed, 17 Jun 2015 22:21:23 -0400 Subject: Don't redraw label parts unnecessarily --- blocks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blocks.js b/blocks.js index d2a395a..6c10354 100644 --- a/blocks.js +++ b/blocks.js @@ -2062,7 +2062,7 @@ BlockMorph.prototype.setSpec = function (spec) { } part = myself.labelPart(word); myself.add(part); - if (!(part instanceof CommandSlotMorph)) { + if (!(part instanceof CommandSlotMorph || part instanceof StringMorph)) { part.drawNew(); } if (part instanceof RingMorph) { -- cgit v1.3.1