Fix for calling undefined function.

Reviewed by me.
This commit is contained in:
Francisco Ryan Tolmasky I
2009-08-20 01:07:47 -07:00
parent e174edd0dc
commit d2df0919a5
+1 -1
View File
@@ -270,7 +270,7 @@ CPRunContinuesResponse = -1002;
postNotificationName:CPApplicationWillFinishLaunchingNotification
object:self];
var filename = window.cpOpeningFilename(),
var filename = window.cpOpeningFilename && window.cpOpeningFilename(),
needsUntitled = !!_documentController;
if ([filename length])