diff options
author | Katsuyuki Ohmuro <harmony7@pex2.jp> | 2013-03-13 03:55:09 +0900 |
---|---|---|
committer | Katsuyuki Ohmuro <harmony7@pex2.jp> | 2013-03-13 03:55:09 +0900 |
commit | 5de3304fe93c453d525073590d6fae746f0168df (patch) | |
tree | c3f006fb0b81b205c7a29c6fc88d7d38df2e4652 | |
parent | 73fa51dfb85a1af72105b778932f58e51b0d8ac8 (diff) | |
download | pollymer-5de3304fe93c453d525073590d6fae746f0168df.tar pollymer-5de3304fe93c453d525073590d6fae746f0168df.tar.gz |
Minor fixes to framework
-rw-r--r-- | polldance.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/polldance.js b/polldance.js index 3e729aa..94817f4 100644 --- a/polldance.js +++ b/polldance.js @@ -292,7 +292,7 @@ var DEBUG = true; // Create a copy of the transport because we don't want // to give public access to it (changing it between now and - // cleanout would be a no-no) + // cleanup would be a no-no) this._transport = chooseTransport(this.transport, url); if (this._transport == transportTypes.Xhr) { @@ -322,7 +322,8 @@ var DEBUG = true; this._events.on(type, handler); }; Request.prototype.off = function (type) { - var args = copyArray(arguments, 1).unshift(type); + var args = copyArray(arguments, 1); + args.unshift(type); this._events.off.apply(this._events, args); }; Request.prototype._startXhr = function (method, url, headers, body) { @@ -393,7 +394,7 @@ var DEBUG = true; }; Request.prototype._cleanupJsonp = function (jsonp, abort) { if (jsonp != null) { - jsonCallbacks.removeJsonpCallback(jsonp.id, this); + jsonCallbacks.removeJsonpCallback(jsonp.id); removeJsonpScriptFromDom(jsonp.scriptId); } }; |