Style: remove tabs

This commit is contained in:
cacaodev
2016-01-17 20:54:20 +01:00
parent 6496a6643f
commit 1b72646772
2 changed files with 16 additions and 16 deletions
+9 -9
View File
@@ -881,22 +881,22 @@ Returns a hash for the object. Unlike Cocoa, the hash value does not take conten
}
/*!
Returns an Array formed by applying a function to the objects in the receiver.
Returns an Array formed by applying a function to each object in the receiver.
@param aFunction a function taking two arguments: (element, index).
@return an Array containing the transformed elements.
*/
- (CPArray)arrayByApplyingBlock:(Function/*element, index*/)aFunction
{
var result = [],
count = [self count];
var result = [],
count = [self count];
for (var idx = 0; idx < count; idx++)
{
var obj = aFunction([self objectAtIndex:idx], idx);
[result addObject:obj];
}
for (var idx = 0; idx < count; idx++)
{
var obj = aFunction([self objectAtIndex:idx], idx);
[result addObject:obj];
}
return result;
return result;
}
// Creating a description of the array
+7 -7
View File
@@ -235,15 +235,15 @@ var concat = Array.prototype.concat,
- (CPArray)arrayByApplyingBlock:(Function/*element, index*/)aFunction
{
var result = [];
var result = [];
for (var idx = 0; idx < self.length; idx++)
{
var obj = aFunction(self[idx], idx);
result.push(obj);
}
for (var idx = 0; idx < self.length; idx++)
{
var obj = aFunction(self[idx], idx);
result.push(obj);
}
return result;
return result;
}
- (void)insertObject:(id)anObject atIndex:(CPUInteger)anIndex