From 3c9435ed218f6a67c1becb884ca6ff27fd7daa10 Mon Sep 17 00:00:00 2001 From: Aparajita Fishman Date: Fri, 2 Aug 2013 19:05:57 -0400 Subject: [PATCH] Fixed: FileRequest was broken under CommonJS. The progress event was being used even under CommonJS, which broke file loading and thus jake deploy. --- Objective-J/CFHTTPRequest.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Objective-J/CFHTTPRequest.js b/Objective-J/CFHTTPRequest.js index ba98cc3a2..2b2d29c73 100644 --- a/Objective-J/CFHTTPRequest.js +++ b/Objective-J/CFHTTPRequest.js @@ -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("");