simplify expansion prevention in the palette

dev
Jens Mönig 2016-07-05 09:26:07 +02:00
rodzic ec6c5a952f
commit 18f94e6197
1 zmienionych plików z 1 dodań i 2 usunięć

Wyświetl plik

@ -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;
}