aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Karneges <justin@affinix.com>2013-01-29 12:28:46 -0800
committerJustin Karneges <justin@affinix.com>2013-01-29 12:28:46 -0800
commita7d2425aae938cac829fb53e4ab85edd35e92d81 (patch)
treea839d0aa120b5232711a4e893ec9b22d334f22b0
parente7a3d3157966df1f1a13beb5f597a3727dcccfba (diff)
downloadpollymer-a7d2425aae938cac829fb53e4ab85edd35e92d81.tar
pollymer-a7d2425aae938cac829fb53e4ab85edd35e92d81.tar.gz
use newer json-p field names
-rw-r--r--polldance.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/polldance.js b/polldance.js
index 9530986..cf56770 100644
--- a/polldance.js
+++ b/polldance.js
@@ -183,15 +183,15 @@
var paramList = [];
- paramList.push("callback=" + encodeURIComponent("PollDance._getJsonpCallback(\"" + this._callbackInfo.id + "\")"));
+ paramList.push("_callback=" + encodeURIComponent("PollDance._getJsonpCallback(\"" + this._callbackInfo.id + "\")"));
if (self._method != "GET") {
- paramList.push("method=" + encodeURIComponent(self._method));
+ paramList.push("_method=" + encodeURIComponent(self._method));
}
if (self._headers) {
- paramList.push("headers=" + encodeURIComponent(JSON.stringify(self._headers)));
+ paramList.push("_headers=" + encodeURIComponent(JSON.stringify(self._headers)));
}
if (self._body) {
- paramList.push("body=" + encodeURIComponent(self._body));
+ paramList.push("_body=" + encodeURIComponent(self._body));
}
var params = paramList.join("&");