From: Dan Vanderkam Date: Wed, 23 Mar 2011 16:08:19 +0000 (-0400) Subject: fix issue 170 X-Git-Tag: v1.0.0~548 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=135d99627993613ff367017911619713bc3d7b01;p=dygraphs.git fix issue 170 --- diff --git a/tests/annotation.html b/tests/annotation.html index 0902496..b95c788 100644 --- a/tests/annotation.html +++ b/tests/annotation.html @@ -59,8 +59,8 @@ for (var i = 0; i < ann.length; i++) { var name = nameAnnotation(ann[i]); html += "" - html += name + ": " + ann[i].shortText + " -> "; - html += ann[i].text + "
"; + html += name + ": " + (ann[i].shortText || '(icon)') + html += " -> " + ann[i].text + "
"; } document.getElementById("list").innerHTML = html; }