Merge pull request #125 from jllodra/master
[dygraphs.git] / gallery / annotation.js
index 358c2a9..e0e0319 100644 (file)
@@ -4,13 +4,13 @@ Gallery.register(
     name: 'Annotations', 
     title: 'Dynamic Annotations Demo',
     setup: function(parent) {
-      parent.innerHTML = 
-          "<p>Click any point to add an annotation to it or click 'Add Annotation'.</p>" +
-          "<button id='add'>Add Annotation></button>" +
-          "<button id='bottom'>Shove to bottom</button>" +
-          "<div id='list'></div>" +
-          "<div id='g_div'></div>" +
-          "<div id='events'></div>";
+      parent.innerHTML = [
+          "<p>Click any point to add an annotation to it or click 'Add Annotation'.</p>",
+          "<button id='add'>Add Annotation></button>",
+          "<button id='bottom'>Shove to bottom</button>",
+          "<div id='list'></div>",
+          "<div id='g_div'></div>",
+          "<div id='events'></div>" ].join("\n");
      },
 
     run: function() {