From 18f94e619779acb3835d18974b93dda5b8d64cf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jens=20M=C3=B6nig?= Date: Tue, 5 Jul 2016 09:26:07 +0200 Subject: [PATCH] simplify expansion prevention in the palette --- blocks.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/blocks.js b/blocks.js index ad1587b6..48d7b421 100644 --- a/blocks.js +++ b/blocks.js @@ -10359,8 +10359,7 @@ MultiArgMorph.prototype.removeInput = function () { MultiArgMorph.prototype.mouseClickLeft = function (pos) { // prevent expansion in the palette // (because it can be hard or impossible to collapse again) - if (this.parentThatIsA(BlockMorph).isTemplate && - !this.parentThatIsA(ScriptsMorph)) { + if (!this.parentThatIsA(ScriptsMorph)) { this.escalateEvent('mouseClickLeft', pos); return; }