From 9f612522bbefac1476a85ae36fcf50644a44435f Mon Sep 17 00:00:00 2001 From: Kevin Glowacz Date: Sat, 23 May 2009 15:41:02 +0000 Subject: [PATCH] (trunk web) more torrent file js speedups --- web/javascript/torrent.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/javascript/torrent.js b/web/javascript/torrent.js index cedc52fcd..6d29f570f 100644 --- a/web/javascript/torrent.js +++ b/web/javascript/torrent.js @@ -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]); } }