Fix for calling undefined function.

Reviewed by me.
This commit is contained in:
Francisco Ryan Tolmasky I committed 2009-08-20 01:07:47 -07:00
1 parent e174edd0dc
commit d2df0919a5
1 file changed
+1 -1
+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])