mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-14 18:53:50 +00:00
Be more lenient in documents about strings versus URLs.
Fix a typo in CPTextField.
This commit is contained in:
1 parent
42db55fabd
commit
68a15c5c7c
2 files changed
+5
-4
No files matched your search
@@ -390,13 +390,14 @@ var CPSharedDocumentController = nil;
|
||||
|
||||
- (void)noteNewRecentDocument:(CPDocument)aDocument
|
||||
{
|
||||
[self noteNewRecentDocumentURL:[[aDocument fileURL] absoluteString]];
|
||||
[self noteNewRecentDocumentURL:[aDocument fileURL]];
|
||||
}
|
||||
|
||||
- (void)noteNewRecentDocumentURL:(CPString)aURL
|
||||
- (void)noteNewRecentDocumentURL:(CPURL)aURL
|
||||
{
|
||||
var urlAsString = [aURL isKindOfClass:CPString] ? aURL : [aURL absoluteString];
|
||||
if (typeof window["cpNoteNewRecentDocumentPath"] === 'function')
|
||||
window.cpNoteNewRecentDocumentPath(aURL);
|
||||
window.cpNoteNewRecentDocumentPath(urlAsString);
|
||||
|
||||
[self _updateRecentDocumentsMenu];
|
||||
}
|
||||
|
||||
@@ -977,7 +977,7 @@ CPTextFieldStatePlaceholder = CPThemeState("placeholder");
|
||||
// fall through to the return
|
||||
}
|
||||
|
||||
return CGMakeRange(0, 0);
|
||||
return CPMakeRange(0, 0);
|
||||
}
|
||||
|
||||
- (void)setSelectedRange:(CPRange)aRange
|
||||
|
||||
Reference in new issue
Block a user