Sfoglia il codice sorgente

Uses #at: in HashedCollection >> values

Nicolas Petton 11 anni fa
parent
commit
c9d4cda4f0
3 ha cambiato i file con 4 aggiunte e 4 eliminazioni
  1. 1 1
      js/Kernel-Collections.deploy.js
  2. 2 2
      js/Kernel-Collections.js
  3. 1 1
      st/Kernel-Collections.st

+ 1 - 1
js/Kernel-Collections.deploy.js

@@ -1327,7 +1327,7 @@ var self=this;
 return smalltalk.withContext(function($ctx1) { 
 
 		return self._keys().map(function(key){
-			return self[key];
+			return self._at_(key);
 		});
 	;
 return self}, function($ctx1) {$ctx1.fill(self,"values",{},smalltalk.HashedCollection)})},

+ 2 - 2
js/Kernel-Collections.js

@@ -1757,12 +1757,12 @@ var self=this;
 return smalltalk.withContext(function($ctx1) { 
 
 		return self._keys().map(function(key){
-			return self[key];
+			return self._at_(key);
 		});
 	;
 return self}, function($ctx1) {$ctx1.fill(self,"values",{},smalltalk.HashedCollection)})},
 args: [],
-source: "values\x0a\x09<\x0a\x09\x09return self._keys().map(function(key){\x0a\x09\x09\x09return self[key];\x0a\x09\x09});\x0a\x09>",
+source: "values\x0a\x09<\x0a\x09\x09return self._keys().map(function(key){\x0a\x09\x09\x09return self._at_(key);\x0a\x09\x09});\x0a\x09>",
 messageSends: [],
 referencedClasses: []
 }),

+ 1 - 1
st/Kernel-Collections.st

@@ -453,7 +453,7 @@ size
 values
 	<
 		return self._keys().map(function(key){
-			return self[key];
+			return self._at_(key);
 		});
 	>
 ! !