Skip to content

Commit a66d56a

Browse files
committed
simple Plotly return from index
1 parent 0d00c52 commit a66d56a

9 files changed

+9
-63
lines changed

lib/index-basic.js

+1-7
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,4 @@ Plotly.register([
1717
require('./calendars')
1818
]);
1919

20-
// Using
21-
// module.exports = Plotly;
22-
// here often make unrecognized characters (from d3 - v3) in the bundles
23-
// For now we use an IIFE https://developer.mozilla.org/en-US/docs/Glossary/IIFE
24-
// to return the Plotly object.
25-
// It’s a hack to fix encoding problems and we’ll remove it after we solve those.
26-
module.exports = (function(_Plotly) { return _Plotly; })(Plotly);
20+
module.exports = Plotly;

lib/index-cartesian.js

+1-7
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,4 @@ Plotly.register([
2626
require('./calendars')
2727
]);
2828

29-
// Using
30-
// module.exports = Plotly;
31-
// here often make unrecognized characters (from d3 - v3) in the bundles
32-
// For now we use an IIFE https://developer.mozilla.org/en-US/docs/Glossary/IIFE
33-
// to return the Plotly object.
34-
// It’s a hack to fix encoding problems and we’ll remove it after we solve those.
35-
module.exports = (function(_Plotly) { return _Plotly; })(Plotly);
29+
module.exports = Plotly;

lib/index-finance.js

+1-7
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,4 @@ Plotly.register([
2424
require('./calendars')
2525
]);
2626

27-
// Using
28-
// module.exports = Plotly;
29-
// here often make unrecognized characters (from d3 - v3) in the bundles
30-
// For now we use an IIFE https://developer.mozilla.org/en-US/docs/Glossary/IIFE
31-
// to return the Plotly object.
32-
// It’s a hack to fix encoding problems and we’ll remove it after we solve those.
33-
module.exports = (function(_Plotly) { return _Plotly; })(Plotly);
27+
module.exports = Plotly;

lib/index-geo.js

+1-7
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,4 @@ Plotly.register([
1717
require('./calendars')
1818
]);
1919

20-
// Using
21-
// module.exports = Plotly;
22-
// here often make unrecognized characters (from d3 - v3) in the bundles
23-
// For now we use an IIFE https://developer.mozilla.org/en-US/docs/Glossary/IIFE
24-
// to return the Plotly object.
25-
// It’s a hack to fix encoding problems and we’ll remove it after we solve those.
26-
module.exports = (function(_Plotly) { return _Plotly; })(Plotly);
20+
module.exports = Plotly;

lib/index-gl2d.js

+1-7
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,4 @@ Plotly.register([
2020
require('./calendars')
2121
]);
2222

23-
// Using
24-
// module.exports = Plotly;
25-
// here often make unrecognized characters (from d3 - v3) in the bundles
26-
// For now we use an IIFE https://developer.mozilla.org/en-US/docs/Glossary/IIFE
27-
// to return the Plotly object.
28-
// It’s a hack to fix encoding problems and we’ll remove it after we solve those.
29-
module.exports = (function(_Plotly) { return _Plotly; })(Plotly);
23+
module.exports = Plotly;

lib/index-gl3d.js

+1-7
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,4 @@ Plotly.register([
2222
require('./calendars')
2323
]);
2424

25-
// Using
26-
// module.exports = Plotly;
27-
// here often make unrecognized characters (from d3 - v3) in the bundles
28-
// For now we use an IIFE https://developer.mozilla.org/en-US/docs/Glossary/IIFE
29-
// to return the Plotly object.
30-
// It’s a hack to fix encoding problems and we’ll remove it after we solve those.
31-
module.exports = (function(_Plotly) { return _Plotly; })(Plotly);
25+
module.exports = Plotly;

lib/index-mapbox.js

+1-7
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,4 @@ Plotly.register([
1818
require('./calendars')
1919
]);
2020

21-
// Using
22-
// module.exports = Plotly;
23-
// here often make unrecognized characters (from d3 - v3) in the bundles
24-
// For now we use an IIFE https://developer.mozilla.org/en-US/docs/Glossary/IIFE
25-
// to return the Plotly object.
26-
// It’s a hack to fix encoding problems and we’ll remove it after we solve those.
27-
module.exports = (function(_Plotly) { return _Plotly; })(Plotly);
21+
module.exports = Plotly;

lib/index-strict.js

+1-7
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,4 @@ Plotly.register([
5151
require('./calendars')
5252
]);
5353

54-
// Using
55-
// module.exports = Plotly;
56-
// here often make unrecognized characters (from d3 - v3) in the bundles
57-
// For now we use an IIFE https://developer.mozilla.org/en-US/docs/Glossary/IIFE
58-
// to return the Plotly object.
59-
// It’s a hack to fix encoding problems and we’ll remove it after we solve those.
60-
module.exports = (function(_Plotly) { return _Plotly; })(Plotly);
54+
module.exports = Plotly;

lib/index.js

+1-7
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,4 @@ Plotly.register([
6060
require('./calendars')
6161
]);
6262

63-
// Using
64-
// module.exports = Plotly;
65-
// here often make unrecognized characters (from d3 - v3) in the bundles
66-
// For now we use an IIFE https://developer.mozilla.org/en-US/docs/Glossary/IIFE
67-
// to return the Plotly object.
68-
// It’s a hack to fix encoding problems and we’ll remove it after we solve those.
69-
module.exports = (function(_Plotly) { return _Plotly; })(Plotly);
63+
module.exports = Plotly;

0 commit comments

Comments
 (0)