Changeset 12761


Ignore:
Timestamp:
Aug 26, 2011, 9:51:14 PM (10 years ago)
Author:
jordan
Message:

remove unnecessary field test

File:
1 edited

Legend:

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

    r12757 r12761  
    154154        },
    155155
    156         isField: function(name) {
    157                 return ( name === 'id' )
    158                     || ( Torrent.Fields.Stats.indexOf(name)      !== -1 )
    159                     || ( Torrent.Fields.StatsExtra.indexOf(name) !== -1 )
    160                     || ( Torrent.Fields.InfoExtra.indexOf(name)  !== -1 )
    161                     || ( Torrent.Fields.Metadata.indexOf(name)   !== -1 );
    162         },
    163 
    164156        refreshFields: function(data)
    165157        {
     
    167159
    168160                for (var key in data) {
    169                         if (this.isField(key)) switch (key) {
     161                        switch (key) {
    170162                                case 'files':
    171163                                case 'fileStats': // merge files and fileStats together
Note: See TracChangeset for help on using the changeset viewer.