|
@@ -2861,7 +2861,7 @@ var self=this;
|
|
|
return smalltalk.withContext(function($ctx1) {
|
|
|
|
|
|
for(var i=0;i<self.length;i++) {
|
|
|
- if(self[i] == anObject) {
|
|
|
+ if(_st(self[i]).__eq(anObject)) {
|
|
|
self.splice(i,1);
|
|
|
return self;
|
|
|
}
|
|
@@ -2870,7 +2870,7 @@ return smalltalk.withContext(function($ctx1) {
|
|
|
;
|
|
|
return self}, function($ctx1) {$ctx1.fill(self,"remove:ifAbsent:",{anObject:anObject,aBlock:aBlock},smalltalk.Array)})},
|
|
|
args: ["anObject", "aBlock"],
|
|
|
-source: "remove: anObject ifAbsent: aBlock\x0a\x09<\x0a\x09\x09for(var i=0;i<self.length;i++) {\x0a\x09\x09\x09if(self[i] == anObject) {\x0a\x09\x09\x09\x09self.splice(i,1);\x0a\x09\x09\x09\x09return self;\x0a\x09\x09\x09}\x0a\x09\x09};\x0a\x09\x09aBlock._value();\x0a\x09>",
|
|
|
+source: "remove: anObject ifAbsent: aBlock\x0a\x09<\x0a\x09\x09for(var i=0;i<self.length;i++) {\x0a\x09\x09\x09if(_st(self[i]).__eq(anObject)) {\x0a\x09\x09\x09\x09self.splice(i,1);\x0a\x09\x09\x09\x09return self;\x0a\x09\x09\x09}\x0a\x09\x09};\x0a\x09\x09aBlock._value();\x0a\x09>",
|
|
|
messageSends: [],
|
|
|
referencedClasses: []
|
|
|
}),
|
|
@@ -4579,7 +4579,7 @@ return smalltalk.withContext(function($ctx1) {
|
|
|
|
|
|
var found;
|
|
|
for(var i=0; i < self['@elements'].length; i++) {
|
|
|
- if(_st(anObject).__eq_eq(self['@elements'][i])) {
|
|
|
+ if(_st(anObject).__eq(self['@elements'][i])) {
|
|
|
found = true;
|
|
|
break;
|
|
|
}
|
|
@@ -4588,7 +4588,7 @@ return smalltalk.withContext(function($ctx1) {
|
|
|
;
|
|
|
return self}, function($ctx1) {$ctx1.fill(self,"add:",{anObject:anObject},smalltalk.Set)})},
|
|
|
args: ["anObject"],
|
|
|
-source: "add: anObject\x0a\x09<\x0a\x09\x09var found;\x0a\x09\x09for(var i=0; i < self['@elements'].length; i++) {\x0a\x09\x09\x09if(_st(anObject).__eq_eq(self['@elements'][i])) {\x0a\x09\x09\x09\x09found = true;\x0a\x09\x09\x09\x09break;\x0a\x09\x09\x09}\x0a\x09\x09}\x0a\x09\x09if(!found) {self['@elements'].push(anObject)}\x0a\x09>",
|
|
|
+source: "add: anObject\x0a\x09<\x0a\x09\x09var found;\x0a\x09\x09for(var i=0; i < self['@elements'].length; i++) {\x0a\x09\x09\x09if(_st(anObject).__eq(self['@elements'][i])) {\x0a\x09\x09\x09\x09found = true;\x0a\x09\x09\x09\x09break;\x0a\x09\x09\x09}\x0a\x09\x09}\x0a\x09\x09if(!found) {self['@elements'].push(anObject)}\x0a\x09>",
|
|
|
messageSends: [],
|
|
|
referencedClasses: []
|
|
|
}),
|