From f1afe16889155da2c469f0452ea979552f3d08b6 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Sat, 23 May 2009 23:52:36 +0000 Subject: [PATCH] (trunk web) don't use reserved word 'class' as a local variable name --- web/javascript/torrent.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/web/javascript/torrent.js b/web/javascript/torrent.js index 33f67a47a..598f2f8d9 100644 --- a/web/javascript/torrent.js +++ b/web/javascript/torrent.js @@ -758,21 +758,21 @@ TorrentFile.prototype = { refreshWantedHTML: function() { var element = this.element(); - var class = element[0].className.replace(/ skip| complete/g, '').split(' '); + var c = element[0].className.replace(/ skip| complete/g, '').split(' '); if(!this._wanted) - class.push('skip'); + c.push('skip'); if(this._done>=this._size) - class.push('complete'); + c.push('complete'); - element[0].className = class.join(' '); + element[0].className = c.join(' '); }, refreshPriorityHTML: function() { var priority = { '1': 'high', '0': 'normal', '-1': 'low' }[new String(this._prio)]; - var class = this._priority_control[0].className.replace(/ high| normal| low/g, '').split(' '); + var c = this._priority_control[0].className.replace(/ high| normal| low/g, '').split(' '); - class.push(priority) + c.push(priority) this._priority_control[0].className = class.join(' '); },