Skip to content

Commit

Permalink
plots: extend export obj with Registry instead of hard-coding
Browse files Browse the repository at this point in the history
  • Loading branch information
etpinard committed Aug 18, 2016
1 parent 39c32d0 commit 489513b
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/plots/plots.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,8 @@ var Color = require('../components/color');

var plots = module.exports = {};

// Expose registry methods that used to be on Plots for backward-compatibility
plots.modules = Registry.modules;
plots.allTypes = Registry.allTypes;
plots.allCategories = Registry.allCategories;
plots.subplotsRegistry = Registry.subplotsRegistry;
plots.transformsRegistry = Registry.transformsRegistry;
plots.traceIs = Registry.traceIs;
plots.getModule = Registry.getModule;
// Expose registry methods on Plots for backward-compatibility
Lib.extendFlat(plots, Registry);

plots.attributes = require('./attributes');
plots.attributes.type.values = plots.allTypes;
Expand Down

0 comments on commit 489513b

Please sign in to comment.