X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=dygraph-dev.js;h=1f6005a69dc25a2a2e6af10f50576fc004adaf7f;hb=ccd9d7c2bf76882f57d29161fe69b0db53124f54;hp=1e7bada61ce9b0e0d9b85bb45898e7ce5c21a462;hpb=8d3d15af637551a921a62aac83e6e056fd0656d9;p=dygraphs.git diff --git a/dygraph-dev.js b/dygraph-dev.js index 1e7bada..1f6005a 100644 --- a/dygraph-dev.js +++ b/dygraph-dev.js @@ -1,3 +1,9 @@ +/** + * @license + * Copyright 2011 Dan Vanderkam (danvdk@gmail.com) + * MIT-licensed (http://opensource.org/licenses/MIT) + */ + // A dygraph "auto-loader". // Check where this script was sourced from. If it was sourced from @@ -6,28 +12,24 @@ (function() { var src=document.getElementsByTagName('script'); var script = src[src.length-1].getAttribute("src"); - var m = /^(.*)\/[^/]*\.js$/.exec(script); - if (!m) { - console.error("Can't grok dygraph-dev.js path: " + script); - } else { - var path = m[1]; // captured group, not the full match. - // This list needs to be kept in sync w/ the one in generate-combined.sh - // and the one in jsTestDriver.conf. - var source_files = [ - "strftime/strftime-min.js", - "rgbcolor/rgbcolor.js", - "dygraph-layout.js", - "dygraph-canvas.js", - "dygraph.js", - "dygraph-utils.js", - "dygraph-gviz.js", - "dygraph-interaction-model.js", - "dygraph-options-reference.js" // Shouldn't be included in generate-combined.sh - ]; + // This list needs to be kept in sync w/ the one in generate-combined.sh + // and the one in jsTestDriver.conf. + var source_files = [ + "strftime/strftime-min.js", + "rgbcolor/rgbcolor.js", + "dygraph-layout.js", + "dygraph-canvas.js", + "dygraph.js", + "dygraph-utils.js", + "dygraph-gviz.js", + "dygraph-interaction-model.js", + "dygraph-range-selector.js", + "dygraph-tickers.js", + "dygraph-options-reference.js" // Shouldn't be included in generate-combined.sh + ]; - for (var i = 0; i < source_files.length; i++) { - document.write('\n'); - } + for (var i = 0; i < source_files.length; i++) { + document.write('\n'); } })();