Skip to content

Commit 489513b

Browse files
committed
plots: extend export obj with Registry instead of hard-coding
1 parent 39c32d0 commit 489513b

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/plots/plots.js

+2-8
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,8 @@ var Color = require('../components/color');
1919

2020
var plots = module.exports = {};
2121

22-
// Expose registry methods that used to be on Plots for backward-compatibility
23-
plots.modules = Registry.modules;
24-
plots.allTypes = Registry.allTypes;
25-
plots.allCategories = Registry.allCategories;
26-
plots.subplotsRegistry = Registry.subplotsRegistry;
27-
plots.transformsRegistry = Registry.transformsRegistry;
28-
plots.traceIs = Registry.traceIs;
29-
plots.getModule = Registry.getModule;
22+
// Expose registry methods on Plots for backward-compatibility
23+
Lib.extendFlat(plots, Registry);
3024

3125
plots.attributes = require('./attributes');
3226
plots.attributes.type.values = plots.allTypes;

0 commit comments

Comments
 (0)