mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-27 05:57:04 +00:00
Fix for CPArray and _CPJavaScriptArray -copy
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user