Fixed: - CPMutableArray removeObjectIdenticalTo did not remove all instances, was documented incorrectly.

Contrary to what the previous documentation said, removeObjectIdenticalTo: should remove all instances of the argument from the receiver, not just the first one.
This commit is contained in:
Alexander Ljungberg
2013-02-24 23:51:48 +00:00
parent be4a168601
commit 6d1c4a9570
3 changed files with 14 additions and 2 deletions
+1 -1
View File
@@ -251,7 +251,7 @@ var concat = Array.prototype.concat,
if (indexOf)
{
var anIndex;
if ((anIndex = indexOf.call(self, anObject)) !== -1)
while ((anIndex = indexOf.call(self, anObject)) !== -1)
splice.call(self, anIndex, 1);
}
else