Skip to content

Commit

Permalink
Trimming whitespace.
Browse files Browse the repository at this point in the history
  • Loading branch information
doctyper committed Feb 5, 2012
1 parent fcab4d1 commit f949305
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions cross-domain/respond-proxy.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<script>
(function () {
var domain, css, query, getQueryString, ajax, xmlHttp;

/*
http://stackoverflow.com/questions/4963673/get-url-array-variables-in-javascript-jquery/4963817#4963817
*/
Expand All @@ -27,7 +27,6 @@
if (p[0].search(/\[\]/) >= 0) { // then it"s an array
p[0] = p[0].replace("[]", "");


if (typeof ret[p[0]] != "object") {
ret[p[0]] = [];
}
Expand All @@ -43,7 +42,7 @@
var req = xmlHttp();
if (!req){
return;
}
}
req.open( "GET", url, true );
req.onreadystatechange = function () {
if ( req.readyState != 4 || req.status != 200 && req.status != 304 ){
Expand All @@ -56,7 +55,7 @@
}
req.send();
};

//define ajax obj
xmlHttp = (function() {
var xmlhttpmethod = false,
Expand All @@ -80,11 +79,11 @@
return xmlhttpmethod;
};
})();

query = getQueryString();
css = query["css"];
domain = query["url"];

if (css && domain) {
ajax(css, function (response) {
window.name = response;
Expand Down

0 comments on commit f949305

Please sign in to comment.