plug a handful of context leaks.

This commit is contained in:
Jordan Lee
2011-09-03 05:12:14 +00:00
parent f836308b42
commit 9951f8af9f
4 changed files with 7 additions and 7 deletions

View File

@@ -65,8 +65,8 @@ TransmissionRemote.prototype =
* or on a 409, globally set the X-Transmission-Session-Id and resend
*/
ajaxError: function(request, error_string, exception, ajaxObject) {
var token;
remote = this;
var token,
remote = this;
// set the Transmission-Session-Id on a 409
if (request.status == 409 && (token = request.getResponseHeader('X-Transmission-Session-Id'))){
@@ -95,7 +95,7 @@ TransmissionRemote.prototype =
},
sendRequest: function(data, callback, context, async) {
remote = this;
var remote = this;
if (typeof async != 'boolean')
async = true;