From 8f70cebefc88b457172bcdf490da256aec0c010c Mon Sep 17 00:00:00 2001 From: Alexandre Wilhelm Date: Tue, 29 Oct 2013 11:22:55 -0700 Subject: [PATCH] Typo --- AppKit/CPControl.j | 5 +++-- AppKit/CPTextField.j | 4 ++-- AppKit/CPTokenField.j | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/AppKit/CPControl.j b/AppKit/CPControl.j index 388b824f5..caa7b38e4 100644 --- a/AppKit/CPControl.j +++ b/AppKit/CPControl.j @@ -607,7 +607,7 @@ var CPControlBlackColor = [CPColor blackColor]; if ([note object] != self) return; - [[CPNotificationCenter defaultCenter] postNotificationName:CPControlTextDidBeginEditingNotification object:self userInfo:@{ "CPFieldEditor": [note object] }]; + [[CPNotificationCenter defaultCenter] postNotificationName:CPControlTextDidBeginEditingNotification object:self userInfo:@{"CPFieldEditor": [note object]}]; } - (void)textDidChange:(CPNotification)note @@ -616,7 +616,7 @@ var CPControlBlackColor = [CPColor blackColor]; if ([note object] != self) return; - [[CPNotificationCenter defaultCenter] postNotificationName:CPControlTextDidChangeNotification object:self userInfo:@{ "CPFieldEditor": [note object] }]; + [[CPNotificationCenter defaultCenter] postNotificationName:CPControlTextDidChangeNotification object:self userInfo:@{"CPFieldEditor": [note object]}]; } - (void)textDidEndEditing:(CPNotification)note @@ -631,6 +631,7 @@ var CPControlBlackColor = [CPColor blackColor]; } /*! + @ignore Return the currentTextMovement needed by the delegate textDidEndEditing This is going to check the currentEvent of the CPApp */ diff --git a/AppKit/CPTextField.j b/AppKit/CPTextField.j index 3618e09e1..b1eb57347 100644 --- a/AppKit/CPTextField.j +++ b/AppKit/CPTextField.j @@ -721,7 +721,7 @@ CPTextFieldStatePlaceholder = CPThemeState("placeholder"); _isEditing = NO; if ([self isEditable]) { - [self textDidEndEditing:[CPNotification notificationWithName:CPControlTextDidEndEditingNotification object:self userInfo:@{ "CPTextMovement": [self _currentTextMovement] }]]; + [self textDidEndEditing:[CPNotification notificationWithName:CPControlTextDidEndEditingNotification object:self userInfo:@{"CPTextMovement": [self _currentTextMovement]}]]; if ([self sendsActionOnEndEditing]) [self sendAction:[self action] to:[self target]]; @@ -987,7 +987,7 @@ CPTextFieldStatePlaceholder = CPThemeState("placeholder"); if (_isEditing) { _isEditing = NO; - [self textDidEndEditing:[CPNotification notificationWithName:CPControlTextDidEndEditingNotification object:self userInfo:@{ "CPTextMovement": [self _currentTextMovement] }]]; + [self textDidEndEditing:[CPNotification notificationWithName:CPControlTextDidEndEditingNotification object:self userInfo:@{"CPTextMovement": [self _currentTextMovement]}]]; } // If there is no target action, or the sendAction call returns diff --git a/AppKit/CPTokenField.j b/AppKit/CPTokenField.j index fbe0b35b1..9cba6e7d2 100644 --- a/AppKit/CPTokenField.j +++ b/AppKit/CPTokenField.j @@ -428,7 +428,7 @@ CPTokenFieldDeleteButtonType = 1; if (_shouldNotifyTarget) { _shouldNotifyTarget = NO; - [self textDidEndEditing:[CPNotification notificationWithName:CPControlTextDidEndEditingNotification object:self userInfo:@{ "CPTextMovement": [self _currentTextMovement] }]]; + [self textDidEndEditing:[CPNotification notificationWithName:CPControlTextDidEndEditingNotification object:self userInfo:@{"CPTextMovement": [self _currentTextMovement]}]]; if ([self sendsActionOnEndEditing]) [self sendAction:[self action] to:[self target]];