mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-25 13:07:02 +00:00
optimization
This commit is contained in:
@@ -312,8 +312,7 @@ var CPThemeStateAutoCompleting = @"CPThemeStateAutoCompleting",
|
||||
|
||||
- (void)_updatePlaceholderState
|
||||
{
|
||||
var objectValue = [self objectValue];
|
||||
if ((!objectValue || [objectValue count] === 0) && ![self hasThemeState:CPThemeStateEditing])
|
||||
if (([[self _tokens] count] === 0) && ![self hasThemeState:CPThemeStateEditing])
|
||||
[self setThemeState:CPTextFieldStatePlaceholder];
|
||||
else
|
||||
[self unsetThemeState:CPTextFieldStatePlaceholder];
|
||||
|
||||
Reference in New Issue
Block a user