1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 09:13:06 +00:00

(trunk web) more torrent file js speedups

This commit is contained in:
Kevin Glowacz 2009-05-23 15:41:02 +00:00
parent 63b6ca7748
commit 9f612522bb

View file

@ -116,9 +116,9 @@ Torrent.prototype =
file.wanted = data.fileStats[i].wanted;
var torrentFile = new TorrentFile(file);
this._files.push(torrentFile);
this._fileList.append(
torrentFile.element().addClass(i % 2 ? 'even' : 'odd').addClass('inspector_torrent_file_list_entry')
);
var class = (i % 2 ? 'even' : 'odd') + ' inspector_torrent_file_list_entry';
torrentFile.element()[0].className = class;
this._fileList[0].appendChild(torrentFile.element()[0]);
}
}