Changeset 8503


Ignore:
Timestamp:
May 23, 2009, 11:52:36 PM (12 years ago)
Author:
charles
Message:

(trunk web) don't use reserved word 'class' as a local variable name

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/web/javascript/torrent.js

    r8501 r8503  
    759759        refreshWantedHTML: function() {
    760760                var element = this.element();
    761                 var class = element[0].className.replace(/ skip| complete/g, '').split(' ');
     761                var c = element[0].className.replace(/ skip| complete/g, '').split(' ');
    762762
    763763                if(!this._wanted)
    764                         class.push('skip');
     764                        c.push('skip');
    765765                if(this._done>=this._size)
    766                         class.push('complete');
    767 
    768                 element[0].className = class.join(' ');
     766                        c.push('complete');
     767
     768                element[0].className = c.join(' ');
    769769        },
    770770       
    771771        refreshPriorityHTML: function() {
    772772                var priority = { '1': 'high', '0': 'normal', '-1': 'low' }[new String(this._prio)];
    773                 var class = this._priority_control[0].className.replace(/ high| normal| low/g, '').split(' ');
    774 
    775                 class.push(priority)
     773                var c = this._priority_control[0].className.replace(/ high| normal| low/g, '').split(' ');
     774
     775                c.push(priority)
    776776                this._priority_control[0].className = class.join(' ');
    777777        },
Note: See TracChangeset for help on using the changeset viewer.