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

@ -385,10 +385,10 @@ function Inspector(controller) {
}, },
updateTrackersPage = function() { updateTrackersPage = function() {
var i, j, tier, trackers, tor, var i, j, tier, tracker, trackers, tor,
html, parity, lastAnnounceStatusHash, html, parity, lastAnnounceStatusHash,
announceState, lastScrapeStatusHash, announceState, lastScrapeStatusHash,
na = 'N/A'; na = 'N/A',
trackers_list = data.elements.trackers_list, trackers_list = data.elements.trackers_list,
torrents = data.torrents; torrents = data.torrents;

View File

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

View File

@ -269,7 +269,7 @@ TorrentRendererCompact.prototype =
{ {
createRow: function() createRow: function()
{ {
var progressbar, deatils, name, root; var progressbar, details, name, root;
progressbar = TorrentRendererHelper.createProgressbar('compact'); progressbar = TorrentRendererHelper.createProgressbar('compact');

View File

@ -444,7 +444,7 @@ Transmission.prototype =
{ {
var handled = false, var handled = false,
rows = this._rows, rows = this._rows,
up = ev.keyCode === 38; // up key pressed up = ev.keyCode === 38, // up key pressed
dn = ev.keyCode === 40, // down key pressed dn = ev.keyCode === 40, // down key pressed
shift = ev.keyCode === 16; // shift key pressed shift = ev.keyCode === 16; // shift key pressed