mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-27 05:57:04 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user