mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-25 04:57:03 +00:00
Merge pull request #1542 from BlairDuncan/controlDidFailToFormatStringFix
controlDidFailToFormatString should send a string not an HTML element
This commit is contained in:
@@ -652,7 +652,7 @@ CPTextFieldStatePlaceholder = CPThemeState("placeholder");
|
||||
var acceptInvalidValue = NO;
|
||||
|
||||
if ([_delegate respondsToSelector:@selector(control:didFailToFormatString:errorDescription:)])
|
||||
acceptInvalidValue = [_delegate control:self didFailToFormatString:[self _inputElement] errorDescription:error];
|
||||
acceptInvalidValue = [_delegate control:self didFailToFormatString:aValue errorDescription:error];
|
||||
|
||||
if (acceptInvalidValue === NO)
|
||||
return NO;
|
||||
|
||||
@@ -149,7 +149,7 @@ var randomFromTo = function(from, to)
|
||||
else
|
||||
result = nil;
|
||||
|
||||
console.log("stringForObjectValue:%s ==> %s", [anObject description], result);
|
||||
CPLog.info("stringForObjectValue:%s ==> %s", [anObject description], result);
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -169,7 +169,7 @@ var randomFromTo = function(from, to)
|
||||
|
||||
result = error === nil;
|
||||
|
||||
console.log("getObjectValue:forString:%s ==> %s", aString, result);
|
||||
CPLog.info("getObjectValue:forString:%s ==> %s", aString, result);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user