mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-13 06:01:28 +00:00
Fixed: FileRequest was broken under CommonJS.
The progress event was being used even under CommonJS, which broke file loading and thus jake deploy.
This commit is contained in:
@@ -358,6 +358,7 @@ function FileRequest(/*CFURL*/ aURL, onsuccess, onfailure, onprogress)
|
||||
request.onfailure = onfailure;
|
||||
}
|
||||
|
||||
#if BROWSER
|
||||
if (onprogress)
|
||||
{
|
||||
var supportsProgress = true;
|
||||
@@ -380,6 +381,7 @@ function FileRequest(/*CFURL*/ aURL, onsuccess, onfailure, onprogress)
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
request.open("GET", aURL.absoluteString(), exports.asyncLoader);
|
||||
request.send("");
|
||||
|
||||
Reference in New Issue
Block a user