diff options
| author | Nathan Dinsmore <nathan@users.noreply.github.com> | 2015-06-17 22:21:23 -0400 |
|---|---|---|
| committer | Nathan Dinsmore <nathan@users.noreply.github.com> | 2015-06-17 22:21:23 -0400 |
| commit | 95a815b6d63b57f46a72be25b9723366f4af76bd (patch) | |
| tree | 908f079077185993e4a0a4778076ae1796017c7f | |
| parent | 836b5d3fd04c4438241c5f53078da2b36f54a9b1 (diff) | |
| download | snap-95a815b6d63b57f46a72be25b9723366f4af76bd.tar.gz snap-95a815b6d63b57f46a72be25b9723366f4af76bd.zip | |
Don't redraw label parts unnecessarily
| -rw-r--r-- | blocks.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |
