mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 04:18:39 +00:00
(trunk web) a simple tweak to setInnerHTML() clears out about 20% of the periodic refresh overhead on my setup...
This commit is contained in:
@@ -87,8 +87,14 @@ Array.prototype.clone = function () {
|
||||
*/
|
||||
function setInnerHTML( e, html )
|
||||
{
|
||||
if( e.innerHTML != html )
|
||||
/* innerHTML is listed as a string, but the browser seems to change it.
|
||||
* For example, "∞" gets changed to "∞" somewhere down the line.
|
||||
* So, let's use an arbitrary different field to test our state... */
|
||||
if( e.currentHTML != html )
|
||||
{
|
||||
e.currentHTML = html;
|
||||
e.innerHTML = html;
|
||||
}
|
||||
};
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user