Permalink
Browse files

Trimming whitespace.

  • Loading branch information...
1 parent fcab4d1 commit f949305b9b4297e639d002020ff17a90d11738c8 @doctyper doctyper committed Feb 5, 2012
Showing with 5 additions and 6 deletions.
  1. +5 −6 cross-domain/respond-proxy.html
@@ -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
*/
@@ -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]] = [];
}
@@ -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 ){
@@ -56,7 +55,7 @@
}
req.send();
};
-
+
//define ajax obj
xmlHttp = (function() {
var xmlhttpmethod = false,
@@ -80,11 +79,11 @@
return xmlhttpmethod;
};
})();
-
+
query = getQueryString();
css = query["css"];
domain = query["url"];
-
+
if (css && domain) {
ajax(css, function (response) {
window.name = response;

0 comments on commit f949305

Please sign in to comment.