kopia lustrzana https://github.com/backface/turtlestitch
fixed "Load Failed Type Error Cannot read property 'isLinked' of null"
you guys need to at least *try* your stuff on a few actual projects, dammit!pull/3/merge
rodzic
e362730a0c
commit
d559312b07
10
lists.js
10
lists.js
|
@ -61,7 +61,7 @@ PushButtonMorph, SyntaxElementMorph, Color, Point, WatcherMorph,
|
||||||
StringMorph, SpriteMorph, ScrollFrameMorph, CellMorph, ArrowMorph,
|
StringMorph, SpriteMorph, ScrollFrameMorph, CellMorph, ArrowMorph,
|
||||||
MenuMorph, snapEquals, Morph, isNil, localize, MorphicPreferences*/
|
MenuMorph, snapEquals, Morph, isNil, localize, MorphicPreferences*/
|
||||||
|
|
||||||
modules.lists = '2014-July-27';
|
modules.lists = '2014-July-28';
|
||||||
|
|
||||||
var List;
|
var List;
|
||||||
var ListWatcherMorph;
|
var ListWatcherMorph;
|
||||||
|
@ -273,12 +273,14 @@ List.prototype.becomeArray = function () {
|
||||||
if (this.isLinked) {
|
if (this.isLinked) {
|
||||||
var next = this, i;
|
var next = this, i;
|
||||||
this.contents = [];
|
this.contents = [];
|
||||||
while (next.isLinked) {
|
while (next && next.isLinked) {
|
||||||
this.contents.push(next.first);
|
this.contents.push(next.first);
|
||||||
next = next.rest;
|
next = next.rest;
|
||||||
}
|
}
|
||||||
for (i = 1; i <= next.contents.length; i += 1) {
|
if (next) {
|
||||||
this.contents.push(next.at(i));
|
for (i = 1; i <= next.contents.length; i += 1) {
|
||||||
|
this.contents.push(next.at(i));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
this.isLinked = false;
|
this.isLinked = false;
|
||||||
this.first = null;
|
this.first = null;
|
||||||
|
|
Ładowanie…
Reference in New Issue