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:
Aparajita Fishman
2013-08-02 19:05:57 -04:00
parent 9e7346f1e8
commit 3c9435ed21
+2
View File
@@ -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("");