Skip to content

Commit

Permalink
also expand Dygraph.{Circles,Plugins}
Browse files Browse the repository at this point in the history
  • Loading branch information
mirabilos committed Feb 16, 2023
1 parent 8fe3ed2 commit 4091e4d
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions tests/exported-symbols.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<ol id="list">
</ol>

<p>It exports these symbols inside each of those symbols:</p>
<p>It exports these symbols inside each of those symbols and <tt>Dygraph.{Circles,Plugins}</tt>:</p>
<ol id="list2">
</ol>

Expand All @@ -25,7 +25,7 @@
<ol id="list4">
</ol>

<p>New second-level elements after loading extras:</p>
<p>New second-level and <tt>Dygraph.{Circles,Plugins}</tt> elements after loading extras:</p>
<ol id="list5">
</ol>

Expand Down Expand Up @@ -65,6 +65,14 @@
level2props.push(sym);
}
}
for (k in Dygraph.Circles) {
sym = 'Dygraph.Circles.' + k;
level2props.push(sym);
}
for (k in Dygraph.Plugins) {
sym = 'Dygraph.Plugins.' + k;
level2props.push(sym);
}

level2props.sort();
html = '';
Expand Down Expand Up @@ -131,6 +139,16 @@
newl2props.push(sym);
}
}
for (k in Dygraph.Circles) {
sym = 'Dygraph.Circles.' + k;
if (!level2props.includes(sym))
newl2props.push(sym);
}
for (k in Dygraph.Plugins) {
sym = 'Dygraph.Plugins.' + k;
if (!level2props.includes(sym))
newl2props.push(sym);
}
newl2props.sort();
html = '';
for (i = 0; i < newl2props.length; i++)
Expand Down

0 comments on commit 4091e4d

Please sign in to comment.