Set this for drawCallback
[dygraphs.git] / tests / exported-symbols.html
1 <!doctype html>
2 <html>
3 <head>
4 <title>Exported Symbols test</title>
5 </head>
6 <body>
7 <p>dygraphs exports these symbols into the global namespace:</p>
8 <ol id="list">
9 </ol>
10
11 <p>It exports these symbols inside each of those symbols:</p>
12 <ol id="list2">
13 </ol>
14
15 <script type="text/javascript">
16 var windowProps = {};
17 var newProps = [];
18 var k, i, html, level2props, sym, topSymbol;
19 for (k in window) {
20 windowProps[k] = true;
21 }
22 </script>
23 <!--
24 <script type="text/javascript" src="../dygraph-dev.js"></script>
25 -->
26 <script type="text/javascript" src="../dygraph-combined.js"></script>
27 <script type="text/javascript">
28 for (k in window) {
29 if (!windowProps.hasOwnProperty(k)) {
30 newProps.push(k);
31 }
32 }
33 newProps.sort();
34 html = '';
35 for (i = 0; i < newProps.length; i++) {
36 html += '<li>' + newProps[i] + '</li>\n';
37 }
38 document.getElementById('list').innerHTML = html;
39
40 level2props = [];
41 for (i = 0; i < newProps.length; i++) {
42 topSymbol = newProps[i];
43 for (k in window[topSymbol]) {
44 sym = topSymbol + '.' + k;
45 level2props.push(sym);
46 }
47 }
48
49 newProps.sort();
50 html = '';
51 for (i = 0; i < level2props.length; i++) {
52 html += '<li>' + level2props[i] + '</li>\n';
53 }
54 document.getElementById('list2').innerHTML = html;
55 </script>
56 </body>
57 </html>