kopia lustrzana https://github.com/backface/turtlestitch
list op fixes, thanks, Brian!
rodzic
d88da36762
commit
c1d5910f33
|
@ -155,7 +155,7 @@ DialogBoxMorph, BlockInputFragmentMorph, PrototypeHatBlockMorph, Costume*/
|
||||||
|
|
||||||
// Global stuff ////////////////////////////////////////////////////////
|
// Global stuff ////////////////////////////////////////////////////////
|
||||||
|
|
||||||
modules.blocks = '2014-July-14';
|
modules.blocks = '2014-July-17';
|
||||||
|
|
||||||
|
|
||||||
var SyntaxElementMorph;
|
var SyntaxElementMorph;
|
||||||
|
|
2
gui.js
2
gui.js
|
@ -69,7 +69,7 @@ SpeechBubbleMorph*/
|
||||||
|
|
||||||
// Global stuff ////////////////////////////////////////////////////////
|
// Global stuff ////////////////////////////////////////////////////////
|
||||||
|
|
||||||
modules.gui = '2014-July-14';
|
modules.gui = '2014-July-17';
|
||||||
|
|
||||||
// Declarations
|
// Declarations
|
||||||
|
|
||||||
|
|
6
lists.js
6
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-14';
|
modules.lists = '2014-July-17';
|
||||||
|
|
||||||
var List;
|
var List;
|
||||||
var ListWatcherMorph;
|
var ListWatcherMorph;
|
||||||
|
@ -221,7 +221,7 @@ List.prototype.at = function (index) {
|
||||||
List.prototype.contains = function (element) {
|
List.prototype.contains = function (element) {
|
||||||
var pair = this;
|
var pair = this;
|
||||||
while (pair.isLinked) {
|
while (pair.isLinked) {
|
||||||
if (snapEquals(this.first, element)) {
|
if (snapEquals(pair.first, element)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
pair = pair.rest;
|
pair = pair.rest;
|
||||||
|
@ -247,7 +247,7 @@ List.prototype.asText = function () {
|
||||||
pair = this,
|
pair = this,
|
||||||
i;
|
i;
|
||||||
while (pair.isLinked) {
|
while (pair.isLinked) {
|
||||||
element = this.first;
|
element = pair.first;
|
||||||
if (element instanceof List) {
|
if (element instanceof List) {
|
||||||
result = result.concat(element.asText());
|
result = result.concat(element.asText());
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -42,7 +42,7 @@
|
||||||
|
|
||||||
/*global modules, contains*/
|
/*global modules, contains*/
|
||||||
|
|
||||||
modules.locale = '2014-July-14';
|
modules.locale = '2014-July-17';
|
||||||
|
|
||||||
// Global stuff
|
// Global stuff
|
||||||
|
|
||||||
|
|
|
@ -125,7 +125,7 @@ PrototypeHatBlockMorph*/
|
||||||
|
|
||||||
// Global stuff ////////////////////////////////////////////////////////
|
// Global stuff ////////////////////////////////////////////////////////
|
||||||
|
|
||||||
modules.objects = '2014-July-14';
|
modules.objects = '2014-July-17';
|
||||||
|
|
||||||
var SpriteMorph;
|
var SpriteMorph;
|
||||||
var StageMorph;
|
var StageMorph;
|
||||||
|
|
Ładowanie…
Reference in New Issue