From b0e108838c7cbd2c5aa1991f9795f1ca0d32e85c Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Sat, 26 Jun 2010 16:47:15 +0000 Subject: [PATCH] (trunk web) add an "undefined" test to common.setInnerHTML() --- web/javascript/common.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web/javascript/common.js b/web/javascript/common.js index c2e1a70c7..edf60a015 100644 --- a/web/javascript/common.js +++ b/web/javascript/common.js @@ -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... */