fixed linked lists identity loss when showing watchers

or then calling toString() on a linked list, which used to mutate the
list to an arrayed one.
dev
Jens Mönig 2015-11-20 15:56:46 +01:00
rodzic f322f18f72
commit 50959c9ea0
2 zmienionych plików z 6 dodań i 2 usunięć

Wyświetl plik

@ -2685,3 +2685,7 @@ end - bulk of 151116
151117
------
* Blocks: fixed a zebra-coloring glitch for BooleanSlotMorph
151120
------
* Lists: fixed linked lists identity loss when showing watchers

Wyświetl plik

@ -61,7 +61,7 @@ PushButtonMorph, SyntaxElementMorph, Color, Point, WatcherMorph,
StringMorph, SpriteMorph, ScrollFrameMorph, CellMorph, ArrowMorph,
MenuMorph, snapEquals, Morph, isNil, localize, MorphicPreferences*/
modules.lists = '2015-November-16';
modules.lists = '2015-November-20';
var List;
var ListWatcherMorph;
@ -112,7 +112,7 @@ function List(array) {
}
List.prototype.toString = function () {
return 'a List [' + this.asArray() + ']';
return 'a List [' + this.length + ' elements]';
};
// List updating: