1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-24 00:34:04 +00:00

(trunk web) add an "undefined" test to common.setInnerHTML()

This commit is contained in:
Charles Kerr 2010-06-26 16:47:15 +00:00
parent 62346fdac0
commit b0e108838c

View file

@ -97,6 +97,9 @@ Array.prototype.clone = function () {
*/ */
function setInnerHTML( e, html ) function setInnerHTML( e, html )
{ {
if( e == undefined )
return;
/* innerHTML is listed as a string, but the browser seems to change it. /* innerHTML is listed as a string, but the browser seems to change it.
* For example, "∞" gets changed to "∞" somewhere down the line. * For example, "∞" gets changed to "∞" somewhere down the line.
* So, let's use an arbitrary different field to test our state... */ * So, let's use an arbitrary different field to test our state... */