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:
parent
62346fdac0
commit
b0e108838c
1 changed files with 3 additions and 0 deletions
|
@ -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... */
|
||||||
|
|
Loading…
Reference in a new issue