From bb2218ca2891e8c47f5e02a64e4cfe8a63f9743b Mon Sep 17 00:00:00 2001 From: Evert Timberg Date: Sun, 22 Jan 2017 13:23:42 -0500 Subject: [PATCH] remove unnecessary extra init steps --- src/core/core.controller.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/core/core.controller.js b/src/core/core.controller.js index 616df547be7..1d2366152ec 100644 --- a/src/core/core.controller.js +++ b/src/core/core.controller.js @@ -121,13 +121,9 @@ module.exports = function(Chart) { me.resize(true); } - // Make sure controllers are built first so that each dataset is bound to an axis before the scales - // are built + // Make sure scales have IDs and are built before we build any controllers. me.ensureScalesHaveIDs(); - me.buildOrUpdateControllers(); me.buildScales(); - me.updateLayout(); - me.resetElements(); me.initToolTip(); me.update(); @@ -256,10 +252,6 @@ module.exports = function(Chart) { Chart.scaleService.addScalesToLayout(this); }, - updateLayout: function() { - Chart.layoutService.update(this, this.chart.width, this.chart.height); - }, - buildOrUpdateControllers: function() { var me = this; var types = [];