1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-24 08:43:27 +00:00

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() {
var i, j, tier, trackers, tor,
var i, j, tier, tracker, trackers, tor,
html, parity, lastAnnounceStatusHash,
announceState, lastScrapeStatusHash,
na = 'N/A';
na = 'N/A',
trackers_list = data.elements.trackers_list,
torrents = data.torrents;

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;

View file

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

View file

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