mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-29 21:57:41 +00:00
Merge branch 'master' of git@github.com:280north/cappuccino
This commit is contained in:
@@ -90,10 +90,7 @@ var CPStringHashes = new objj_dictionary();
|
||||
*/
|
||||
+ (id)stringWithHash:(unsigned)aHash
|
||||
{
|
||||
var zeros = "000000",
|
||||
digits = aHash.toString(16);
|
||||
|
||||
return zeros.substring(0, zeros.length - digits.length) + digits;
|
||||
return sprintf("%06x", aHash);
|
||||
}
|
||||
|
||||
/*!
|
||||
|
||||
@@ -249,7 +249,7 @@ var _CPTimerBridgeTimer = function(codeOrFunction, aDelay, shouldRepeat, functio
|
||||
if (!functionArgs)
|
||||
functionArgs = [];
|
||||
|
||||
theFunction = function() { codeOrFunction.apply(window, functionArgs); CPTimersForTimeoutIDs[timeoutID] = nil;}
|
||||
theFunction = function() { codeOrFunction.apply(window, functionArgs); CPTimersForTimeoutIDs[timeoutID] = nil; }
|
||||
}
|
||||
|
||||
CPTimersForTimeoutIDs[timeoutID] = [CPTimer scheduledTimerWithTimeInterval:aDelay / 1000 callback:theFunction repeats:shouldRepeat];
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
|
||||
- (id)initWithCoder:(CPCoder)aCoder
|
||||
{
|
||||
return [[_CPCibConnector alloc] NS_initWithCoder:aCoder];
|
||||
return [self NS_initWithCoder:aCoder];
|
||||
}
|
||||
|
||||
- (Class)classForKeyedArchiver
|
||||
@@ -65,7 +65,7 @@
|
||||
|
||||
- (id)initWithCoder:(CPCoder)aCoder
|
||||
{
|
||||
return [[_CPCibControlConnector alloc] NS_initWithCoder:aCoder];
|
||||
return [self NS_initWithCoder:aCoder];
|
||||
}
|
||||
|
||||
- (Class)classForKeyedArchiver
|
||||
@@ -81,7 +81,7 @@
|
||||
|
||||
- (id)initWithCoder:(CPCoder)aCoder
|
||||
{
|
||||
return [[_CPCibOutletConnector alloc] NS_initWithCoder:aCoder];
|
||||
return [self NS_initWithCoder:aCoder];
|
||||
}
|
||||
|
||||
- (Class)classForKeyedArchiver
|
||||
|
||||
@@ -90,7 +90,7 @@
|
||||
|
||||
- (id)initWithCoder:(CPCoder)aCoder
|
||||
{
|
||||
return [[CPView alloc] NS_initWithCoder:aCoder];
|
||||
return [self NS_initWithCoder:aCoder];
|
||||
}
|
||||
|
||||
- (Class)classForKeyedArchiver
|
||||
|
||||
Reference in New Issue
Block a user