From: Robert Konigsberg Date: Mon, 27 Feb 2012 14:09:55 +0000 (-0500) Subject: Gallery failure when CSS does not exist. X-Git-Tag: v1.0.0~318 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=304c1fbb055ba5159ba8730ceddbbd2b676a3c13;p=dygraphs.git Gallery failure when CSS does not exist. --- diff --git a/gallery/gallery.js b/gallery/gallery.js index 121f541..e854a7a 100644 --- a/gallery/gallery.js +++ b/gallery/gallery.js @@ -90,9 +90,11 @@ Gallery.start = function() { Gallery.textarea.show("Javascript", demo.run.toString()); }; - cssLink.onclick = function() { - Gallery.textarea.show("CSS", css); - }; + if (css) { + cssLink.onclick = function() { + Gallery.textarea.show("CSS", css); + }; + } demo.run(Gallery.workareaChild); Gallery.runningDemo = demo;