Skip to content

Commit

Permalink
Make the main controller importable
Browse files Browse the repository at this point in the history
Merge `core/core.js` in `core/core.controller.js`, split defaults options next to their associated code and deprecate `Chart.type` (not sure what it was for).
  • Loading branch information
simonbrunel committed Jan 8, 2019
1 parent 820debf commit 953000a
Show file tree
Hide file tree
Showing 6 changed files with 834 additions and 833 deletions.
4 changes: 1 addition & 3 deletions src/chart.js
@@ -1,7 +1,7 @@
/**
* @namespace Chart
*/
var Chart = require('./core/core')();
var Chart = require('./core/core.controller');

Chart.helpers = require('./helpers/index');

Expand All @@ -24,8 +24,6 @@ Chart.scaleService = require('./core/core.scaleService');
Chart.Ticks = require('./core/core.ticks');
Chart.Tooltip = require('./core/core.tooltip');

require('./core/core.controller')(Chart);

// Register built-in scales
var scales = require('./scales');
Chart.helpers.each(scales, function(scale, type) {
Expand Down

0 comments on commit 953000a

Please sign in to comment.