diff options
author | Justin Karneges <justin@affinix.com> | 2013-01-29 12:28:46 -0800 |
---|---|---|
committer | Justin Karneges <justin@affinix.com> | 2013-01-29 12:28:46 -0800 |
commit | a7d2425aae938cac829fb53e4ab85edd35e92d81 (patch) | |
tree | a839d0aa120b5232711a4e893ec9b22d334f22b0 | |
parent | e7a3d3157966df1f1a13beb5f597a3727dcccfba (diff) | |
download | pollymer-a7d2425aae938cac829fb53e4ab85edd35e92d81.tar pollymer-a7d2425aae938cac829fb53e4ab85edd35e92d81.tar.gz |
use newer json-p field names
-rw-r--r-- | polldance.js | 8 |
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("&"); |