controlDidFailToFormatString should send a string not an HTML element

This commit is contained in:
Blair Duncan
2012-05-15 16:07:56 -04:00
parent 6010288124
commit 5f7d1e8dc3
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -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;
+3 -3
View File
@@ -80,12 +80,12 @@ var randomFromTo = function(from, to)
- (void)objectValue1:(id)sender
{
CPLog.info("Date 1: %s", [[dateField1 objectValue] description]);
console.log("Date 1: %s", [[dateField1 objectValue] description]);
}
- (void)objectValue2:(id)sender
{
CPLog.info("Date 2: %s", [[dateField2 objectValue] description]);
console.log("Date 2: %s", [[dateField2 objectValue] description]);
}
- (void)setNil:(id)sender
@@ -113,7 +113,7 @@ var randomFromTo = function(from, to)
- (BOOL)control:(CPControl)aControl didFailToFormatString:(CPString)aString errorDescription:(CPString)anError
{
CPLog.info("control:didFailToFormatString:%s errorDescription:%s", aString, anError);
console.log("control:didFailToFormatString:%s errorDescription:%s", aString, anError);
if (anError)
{