mirror of
https://github.com/transmission/transmission
synced 2024-12-25 09:13:06 +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() {
|
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;
|
||||||
|
|
||||||
|
|
|
@ -65,7 +65,7 @@ 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
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
|
|
@ -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');
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue