kopia lustrzana https://github.com/backface/turtlestitch
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
rodzic
f322f18f72
commit
50959c9ea0
|
@ -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
|
||||
|
|
4
lists.js
4
lists.js
|
@ -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:
|
||||
|
|
Ładowanie…
Reference in New Issue