Skip to content
This repository has been archived by the owner on Feb 8, 2022. It is now read-only.

Commit

Permalink
comment fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
afeld committed May 6, 2013
1 parent bb5d7d9 commit a6a9458
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jsonp.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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;
};
Expand Down

0 comments on commit a6a9458

Please sign in to comment.