mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-16 03:30:42 +00:00
Fix for controlTextDidChange not firing. Closes 35.
This commit is contained in:
1 parent
8dc8d6f367
commit
06947ef9d3
1 file changed
+2
-6
@@ -212,6 +212,8 @@ CPTextFieldStatePlaceholder = 1 << 13;
|
||||
|
||||
var keyupFunction = function()
|
||||
{
|
||||
[CPTextFieldInputOwner setStringValue:CPTextFieldDOMInputElement.value];
|
||||
|
||||
if ([CPTextFieldInputOwner stringValue] !== CPTextFieldTextDidChangeValue)
|
||||
{
|
||||
CPTextFieldTextDidChangeValue = [CPTextFieldInputOwner stringValue];
|
||||
@@ -584,12 +586,6 @@ CPTextFieldStatePlaceholder = 1 << 13;
|
||||
*/
|
||||
- (id)objectValue
|
||||
{
|
||||
// All of this needs to be better.
|
||||
#if PLATFORM(DOM)
|
||||
if ([[self window] firstResponder] == self)
|
||||
return [[self class] _inputElement].value;
|
||||
#endif
|
||||
|
||||
return [super objectValue];
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user