From a7d2425aae938cac829fb53e4ab85edd35e92d81 Mon Sep 17 00:00:00 2001 From: Justin Karneges Date: Tue, 29 Jan 2013 12:28:46 -0800 Subject: use newer json-p field names --- polldance.js | 8 ++++---- 1 file 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("&"); -- cgit v1.2.3