mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-30 20:07:36 +00:00
A number of set and array fixes and added tests for unordered accessor pattern in key value coding.
Reviewed by me.
This commit is contained in:
1 parent
232f1d008d
commit
9b75e37e1f
4 files changed
+97
-6
No files matched your search
@@ -814,10 +814,7 @@ CPEnumerationReverse = 1 << 1;
|
||||
*/
|
||||
- (CPArray)arrayByAddingObject:(id)anObject
|
||||
{
|
||||
var array = [self copy];
|
||||
array.push(anObject);
|
||||
|
||||
return array;
|
||||
return self.concat(anObject);
|
||||
}
|
||||
|
||||
/*!
|
||||
@@ -826,7 +823,7 @@ CPEnumerationReverse = 1 << 1;
|
||||
*/
|
||||
- (CPArray)arrayByAddingObjectsFromArray:(CPArray)anArray
|
||||
{
|
||||
return slice(0).concat(anArray);
|
||||
return self.concat(anArray);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in new issue
Block a user