X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=gallery%2Fgallery.js;h=e854a7a4ac0bd0b1b13abe2ce7b7cdb234060ad1;hb=966ac3fa0de18a7b5ddefe4aba6938d8358ea0cf;hp=121f5414ce49a2f9ce799463c65e735c332cefd5;hpb=a6c2695d36ff7773e4e0b82236bb5f39b1bc0bdb;p=dygraphs.git 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;