Fix for CPArray and _CPJavaScriptArray -copy

This commit is contained in:
Randall Luecke
2011-01-04 22:59:33 -06:00
parent 03aaa89a61
commit a000687a42
2 changed files with 7 additions and 2 deletions
+6 -1
View File
@@ -58,7 +58,7 @@
for (; index < count; ++index)
{
var object = [anArray objectatIndex:index];
var object = [anArray objectAtIndex:index];
self[index] = object.isa ? [object copy] : object;
}
@@ -212,6 +212,11 @@
self[anIndex] = anObject;
}
- (void)copy
{
return self.slice(0);
}
- (Class)classForCoder
{
return CPArray;