mirror of
https://github.com/transmission/transmission.git
synced 2025-12-20 10:28:32 +00:00
(trunk web) add an "undefined" test to common.setInnerHTML()
This commit is contained in:
@@ -97,6 +97,9 @@ Array.prototype.clone = function () {
|
||||
*/
|
||||
function setInnerHTML( e, html )
|
||||
{
|
||||
if( e == undefined )
|
||||
return;
|
||||
|
||||
/* 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... */
|
||||
|
||||
Reference in New Issue
Block a user