From a6a94588b022aabd9ee3d2d485aac78641844543 Mon Sep 17 00:00:00 2001 From: Aidan Feldman Date: Mon, 6 May 2013 15:38:36 -0400 Subject: [PATCH] comment fixes --- jsonp.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jsonp.js b/jsonp.js index fcff58a..428c07b 100644 --- a/jsonp.js +++ b/jsonp.js @@ -44,6 +44,7 @@ MIT license // favor CORS because it can provide error messages from server to callbacks if ($.support.cors){ + // use the proxy if the endpoint doesn't support CORS, or if it would be an insecure request from a secure page if (!opts.corsSupport || (windowProtocol === 'https:' && protocol !== windowProtocol)){ // proxy CORS opts.url = proxyUrl(url, raw); @@ -75,7 +76,7 @@ MIT license return $.ajax(opts); }; - // make this available easier testing + // make this available for easier testing $.jsonp.getLocation = function(){ return window.location; };