mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-12-02 03:08:22 +00:00
Better support for exotic main file locations.
Reviewed by me.
This commit is contained in:
1 parent
9441739839
commit
5afe6fea3c
3 files changed
+3
-3
No files matched your search
@@ -70,7 +70,7 @@ function resolveMainBundleURL()
|
||||
for (; index < count; ++index)
|
||||
aResource.resourceAtURL(includeURLs[index], YES);
|
||||
|
||||
Executable.fileImporterForURL(mainBundleURL)(mainFileURL, YES, function()
|
||||
Executable.fileImporterForURL(mainBundleURL)(mainFileURL.lastPathComponent(), YES, function()
|
||||
{
|
||||
afterDocumentLoad(main);
|
||||
});
|
||||
|
||||
@@ -53,7 +53,7 @@ GLOBAL(CFBundle) = function(/*CFURL|String*/ aURL)
|
||||
this._loadStatus = CFBundleUnloaded;
|
||||
this._loadRequests = [];
|
||||
|
||||
this._infoDictionary = NULL;
|
||||
this._infoDictionary = new CFDictionary();
|
||||
|
||||
this._eventDispatcher = new EventDispatcher(this);
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ function Executable(/*String*/ aCode, /*Array*/ fileDependencies, /*CFURL|String
|
||||
|
||||
this._code = aCode;
|
||||
this._function = aFunction || NULL;
|
||||
this._URL = makeAbsoluteURL(aURL || new CFURL("(Anonymous" + (AnonymousExecutableCount++) + ")", mainBundleURL));
|
||||
this._URL = makeAbsoluteURL(aURL || new CFURL("(Anonymous" + (AnonymousExecutableCount++) + ")"));
|
||||
|
||||
this._fileDependencies = fileDependencies;
|
||||
this._fileDependencyLoadStatus = ExecutableUnloadedFileDependencies;
|
||||
|
||||
Reference in new issue
Block a user