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:
parent
f836308b42
commit
9951f8af9f
4 changed files with 7 additions and 7 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -269,7 +269,7 @@ TorrentRendererCompact.prototype =
|
|||
{
|
||||
createRow: function()
|
||||
{
|
||||
var progressbar, deatils, name, root;
|
||||
var progressbar, details, name, root;
|
||||
|
||||
progressbar = TorrentRendererHelper.createProgressbar('compact');
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue