mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-12-04 11:54:59 +00:00
Fix CPArray initWithArray: copyItems: to actually work
This commit is contained in:
1 parent
3cd763aabb
commit
0b5db9c4bd
1 file changed
+4
-4
@@ -209,13 +209,13 @@
|
||||
var index = 0,
|
||||
count = [anArray count];
|
||||
|
||||
for(; index < count; ++i)
|
||||
for(; index < count; ++index)
|
||||
{
|
||||
if (anArray[i].isa)
|
||||
self[i] = [anArray copy];
|
||||
if (anArray[index].isa)
|
||||
self[index] = [anArray[index] copy];
|
||||
// Do a deep/shallow copy?
|
||||
else
|
||||
self[i] = anArray;
|
||||
self[index] = anArray;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user