mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-21 14:09:22 +00:00
Fix for a few errors francisco noticed.
This commit is contained in:
1 parent
7ad1c68249
commit
8fa5217318
1 file changed
+4
-4
+4
-4
@@ -165,8 +165,8 @@
|
||||
var array = [];
|
||||
for (var property in _contents)
|
||||
{
|
||||
//if (_contents.hasOwnProperty(property))
|
||||
array.push(_contents[property]);
|
||||
if (_contents.hasOwnProperty(property))
|
||||
array.push(_contents[property]);
|
||||
}
|
||||
|
||||
return array;
|
||||
@@ -234,7 +234,7 @@
|
||||
- (BOOL)isEqualToSet:(CPSet)set
|
||||
{
|
||||
// If both are subsets of each other, they are equal
|
||||
return [self isSubsetOfSet:set] && [set isSubsetOfSet:self];
|
||||
return self === set || ([self count] === [set count] && [set isSubsetOfSet:self]);
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -350,7 +350,7 @@
|
||||
@param anObject The object to remove from the receiver.
|
||||
*/
|
||||
- (void)removeObject:(id)anObject
|
||||
{print("removing: "+anObject);
|
||||
{
|
||||
if ([self containsObject:anObject])
|
||||
{
|
||||
delete _contents[[anObject hash]];
|
||||
|
||||
Reference in new issue
Block a user