mirror of
https://github.com/transmission/transmission
synced 2024-12-25 09:13:06 +00:00
(trunk web) safer use of 'arguments', which is a reserved word
This commit is contained in:
parent
07129ccd08
commit
9ae9c2e56e
1 changed files with 6 additions and 9 deletions
|
@ -143,7 +143,7 @@ Transmission.prototype =
|
|||
loadDaemonPrefs: function(async) {
|
||||
var tr = this;
|
||||
this.remote.loadDaemonPrefs(function(data) {
|
||||
var o = data.arguments;
|
||||
var o = data['arguments'];
|
||||
Prefs.getClutchPrefs(o);
|
||||
tr.updatePrefs(o);
|
||||
}, async);
|
||||
|
@ -152,16 +152,14 @@ Transmission.prototype =
|
|||
loadDaemonStats: function(async) {
|
||||
var tr = this;
|
||||
this.remote.loadDaemonStats(function(data) {
|
||||
var o = data.arguments;
|
||||
tr.updateStats(o);
|
||||
tr.updateStats(data['arguments']);
|
||||
}, async);
|
||||
},
|
||||
checkPort: function(async) {
|
||||
$('#port_test').text('checking ...');
|
||||
var tr = this;
|
||||
this.remote.checkPort(function(data) {
|
||||
var o = data.arguments;
|
||||
tr.updatePortStatus(o);
|
||||
tr.updatePortStatus(data['arguments']);
|
||||
}, async);
|
||||
},
|
||||
|
||||
|
@ -635,7 +633,6 @@ Transmission.prototype =
|
|||
|
||||
savePrefsClicked: function()
|
||||
{
|
||||
|
||||
// handle the clutch prefs locally
|
||||
var tr = this;
|
||||
var rate = parseInt ($('#prefs_form #refresh_rate')[0].value, 10);
|
||||
|
|
Loading…
Reference in a new issue