From a17df6363feeee26e37a48360219bce235c4ef25 Mon Sep 17 00:00:00 2001 From: jmoenig Date: Wed, 1 Jul 2020 19:10:28 +0200 Subject: [PATCH] refactored lists.js with new Morphic constants --- snap.html | 2 +- src/lists.js | 13 +++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/snap.html b/snap.html index c501585b..49934807 100755 --- a/snap.html +++ b/snap.html @@ -12,7 +12,7 @@ - + diff --git a/src/lists.js b/src/lists.js index a1b9e54c..07e314e2 100644 --- a/src/lists.js +++ b/src/lists.js @@ -60,9 +60,10 @@ Color, Point, WatcherMorph, StringMorph, SpriteMorph, ScrollFrameMorph, isNil, CellMorph, ArrowMorph, MenuMorph, snapEquals, localize, isString, IDE_Morph, MorphicPreferences, TableDialogMorph, SpriteBubbleMorph, SpeechBubbleMorph, -TableFrameMorph, TableMorph, Variable, isSnapObject, Costume, contains, detect*/ +TableFrameMorph, TableMorph, Variable, isSnapObject, Costume, contains, detect, +ZERO, WHITE*/ -modules.lists = '2020-May-18'; +modules.lists = '2020-July-01'; var List; var ListWatcherMorph; @@ -693,8 +694,8 @@ ListWatcherMorph.prototype.init = function (list, parentCell) { false, false, false, - MorphicPreferences.isFlat ? new Point() : new Point(1, 1), - new Color(255, 255, 255) + MorphicPreferences.isFlat ? ZERO : new Point(1, 1), + WHITE ); this.label.mouseClickLeft = function () {myself.startIndexMenu(); }; @@ -858,8 +859,8 @@ ListWatcherMorph.prototype.update = function (anyway) { false, false, false, - MorphicPreferences.isFlat ? new Point() : new Point(1, 1), - new Color(255, 255, 255) + MorphicPreferences.isFlat ? ZERO : new Point(1, 1), + WHITE ); cell = new CellMorph( this.list.at(idx),