fix issue 170
authorDan Vanderkam <dan@dygraphs.com>
Wed, 23 Mar 2011 16:08:19 +0000 (12:08 -0400)
committerDan Vanderkam <dan@dygraphs.com>
Wed, 23 Mar 2011 16:08:19 +0000 (12:08 -0400)
tests/annotation.html

index 0902496..b95c788 100644 (file)
@@ -59,8 +59,8 @@
                   for (var i = 0; i < ann.length; i++) {
                     var name = nameAnnotation(ann[i]);
                     html += "<span id='" + name + "'>"
-                    html += name + ": " + ann[i].shortText + " -> ";
-                    html += ann[i].text + "</span><br/>";
+                    html += name + ": " + (ann[i].shortText || '(icon)')
+                    html += " -> " + ann[i].text + "</span><br/>";
                   }
                   document.getElementById("list").innerHTML = html;
                 }