mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-25 04:57:03 +00:00
Fixed: Make sure we return the result from an executed file in the callback
This commit is contained in:
@@ -478,13 +478,13 @@ Executable.fileImporterForURL = function(/*CFURL|String*/ aURL)
|
||||
{
|
||||
aFileExecutable.loadFileDependencies(function()
|
||||
{
|
||||
aFileExecutable.execute();
|
||||
|
||||
var result = aFileExecutable.execute();
|
||||
|
||||
// No more need to cache these.
|
||||
disableCFURLCaching();
|
||||
|
||||
if (aCallback)
|
||||
aCallback();
|
||||
aCallback(result);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
@@ -76,7 +76,7 @@ FileExecutable.prototype.execute = function(/*BOOL*/ shouldForce)
|
||||
|
||||
this._hasExecuted = YES;
|
||||
|
||||
Executable.prototype.execute.call(this);
|
||||
return Executable.prototype.execute.call(this);
|
||||
}
|
||||
|
||||
DISPLAY_NAME(FileExecutable.prototype.execute);
|
||||
|
||||
Reference in New Issue
Block a user