mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-15 19:23:50 +00:00
Quick fix for initWithCapacity: not working on CPMutableArray.
Reviewed by me.
This commit is contained in:
1 parent
818bf475f2
commit
00915083d4
3 files changed
+13
-2
No files matched your search
@@ -175,6 +175,12 @@ var concat = Array.prototype.concat,
|
||||
FORWARD_TO_CONCRETE_CLASS();
|
||||
}
|
||||
|
||||
// FIXME: This should be defined in CPMutableArray, not here.
|
||||
- (id)initWithCapacity:(unsigned)aCapacity
|
||||
{
|
||||
FORWARD_TO_CONCRETE_CLASS();
|
||||
}
|
||||
|
||||
// Querying an array
|
||||
/*!
|
||||
Returns \c YES if the array contains \c anObject. Otherwise, it returns \c NO.
|
||||
|
||||
@@ -29,10 +29,10 @@
|
||||
Initializes an array able to store at least \c aCapacity items. Because CPArray
|
||||
is backed by JavaScript arrays, this method ends up simply returning a regular array.
|
||||
*/
|
||||
- (id)initWithCapacity:(unsigned)aCapacity
|
||||
/*- (id)initWithCapacity:(unsigned)aCapacity
|
||||
{
|
||||
return self;
|
||||
}
|
||||
}*/
|
||||
|
||||
// Adding and replacing objects
|
||||
/*!
|
||||
|
||||
@@ -102,6 +102,11 @@ var concat = Array.prototype.concat,
|
||||
return array;
|
||||
}
|
||||
|
||||
- (id)initWithCapacity:(CPUInteger)aCapacity
|
||||
{
|
||||
return self;
|
||||
}
|
||||
|
||||
- (BOOL)count
|
||||
{
|
||||
return self.length;
|
||||
|
||||
Reference in new issue
Block a user