浏览代码

fixes issue #777

Nicolas Petton 11 年之前
父节点
当前提交
563539e2e5
共有 2 个文件被更改,包括 12 次插入12 次删除
  1. 9 9
      js/Kernel-Collections.js
  2. 3 3
      st/Kernel-Collections.st

+ 9 - 9
js/Kernel-Collections.js

@@ -1144,11 +1144,11 @@ protocol: 'accessing',
 fn: function (anIndex,aBlock){
 fn: function (anIndex,aBlock){
 var self=this;
 var self=this;
 return smalltalk.withContext(function($ctx1) { 
 return smalltalk.withContext(function($ctx1) { 
-self._subclassReponsibility();
+self._subclassResponsibility();
 return self}, function($ctx1) {$ctx1.fill(self,"at:ifAbsent:",{anIndex:anIndex,aBlock:aBlock},smalltalk.IndexableCollection)})},
 return self}, function($ctx1) {$ctx1.fill(self,"at:ifAbsent:",{anIndex:anIndex,aBlock:aBlock},smalltalk.IndexableCollection)})},
 args: ["anIndex", "aBlock"],
 args: ["anIndex", "aBlock"],
-source: "at: anIndex ifAbsent: aBlock\x0a\x09\x22Lookup the given index in the receiver.\x0a\x09If it is present, answer the value stored at anIndex.\x0a\x09Otherwise, answer the value of aBlock.\x22\x0a\x0a\x09self subclassReponsibility",
-messageSends: ["subclassReponsibility"],
+source: "at: anIndex ifAbsent: aBlock\x0a\x09\x22Lookup the given index in the receiver.\x0a\x09If it is present, answer the value stored at anIndex.\x0a\x09Otherwise, answer the value of aBlock.\x22\x0a\x0a\x09self subclassResponsibility",
+messageSends: ["subclassResponsibility"],
 referencedClasses: []
 referencedClasses: []
 }),
 }),
 smalltalk.IndexableCollection);
 smalltalk.IndexableCollection);
@@ -1197,11 +1197,11 @@ protocol: 'accessing',
 fn: function (anIndex,anObject){
 fn: function (anIndex,anObject){
 var self=this;
 var self=this;
 return smalltalk.withContext(function($ctx1) { 
 return smalltalk.withContext(function($ctx1) { 
-self._subclassReponsibility();
+self._subclassResponsibility();
 return self}, function($ctx1) {$ctx1.fill(self,"at:put:",{anIndex:anIndex,anObject:anObject},smalltalk.IndexableCollection)})},
 return self}, function($ctx1) {$ctx1.fill(self,"at:put:",{anIndex:anIndex,anObject:anObject},smalltalk.IndexableCollection)})},
 args: ["anIndex", "anObject"],
 args: ["anIndex", "anObject"],
-source: "at: anIndex put: anObject\x0a\x09\x22Store anObject under the given index in the receiver.\x22\x0a\x0a\x09self subclassReponsibility",
-messageSends: ["subclassReponsibility"],
+source: "at: anIndex put: anObject\x0a\x09\x22Store anObject under the given index in the receiver.\x22\x0a\x0a\x09self subclassResponsibility",
+messageSends: ["subclassResponsibility"],
 referencedClasses: []
 referencedClasses: []
 }),
 }),
 smalltalk.IndexableCollection);
 smalltalk.IndexableCollection);
@@ -1269,11 +1269,11 @@ protocol: 'enumarating',
 fn: function (aBlock){
 fn: function (aBlock){
 var self=this;
 var self=this;
 return smalltalk.withContext(function($ctx1) { 
 return smalltalk.withContext(function($ctx1) { 
-self._subclassReponsibility();
+self._subclassResponsibility();
 return self}, function($ctx1) {$ctx1.fill(self,"withIndexDo:",{aBlock:aBlock},smalltalk.IndexableCollection)})},
 return self}, function($ctx1) {$ctx1.fill(self,"withIndexDo:",{aBlock:aBlock},smalltalk.IndexableCollection)})},
 args: ["aBlock"],
 args: ["aBlock"],
-source: "withIndexDo: aBlock\x0a\x09\x22Calls aBlock with every value from self\x0a\x09and with its index as the second argument\x22\x0a\x0a\x09self subclassReponsibility",
-messageSends: ["subclassReponsibility"],
+source: "withIndexDo: aBlock\x0a\x09\x22Calls aBlock with every value from self\x0a\x09and with its index as the second argument\x22\x0a\x0a\x09self subclassResponsibility",
+messageSends: ["subclassResponsibility"],
 referencedClasses: []
 referencedClasses: []
 }),
 }),
 smalltalk.IndexableCollection);
 smalltalk.IndexableCollection);

+ 3 - 3
st/Kernel-Collections.st

@@ -374,7 +374,7 @@ at: anIndex ifAbsent: aBlock
 	If it is present, answer the value stored at anIndex.
 	If it is present, answer the value stored at anIndex.
 	Otherwise, answer the value of aBlock."
 	Otherwise, answer the value of aBlock."
 
 
-	self subclassReponsibility
+	self subclassResponsibility
 !
 !
 
 
 at: anIndex ifPresent: aBlock
 at: anIndex ifPresent: aBlock
@@ -396,7 +396,7 @@ at: anIndex ifPresent: aBlock ifAbsent: anotherBlock
 at: anIndex put: anObject
 at: anIndex put: anObject
 	"Store anObject under the given index in the receiver."
 	"Store anObject under the given index in the receiver."
 
 
-	self subclassReponsibility
+	self subclassResponsibility
 !
 !
 
 
 indexOf: anObject
 indexOf: anObject
@@ -427,7 +427,7 @@ withIndexDo: aBlock
 	"Calls aBlock with every value from self
 	"Calls aBlock with every value from self
 	and with its index as the second argument"
 	and with its index as the second argument"
 
 
-	self subclassReponsibility
+	self subclassResponsibility
 ! !
 ! !
 
 
 IndexableCollection subclass: #HashedCollection
 IndexableCollection subclass: #HashedCollection