Skip to content

Commit

Permalink
Plugin methods changed to have a better name
Browse files Browse the repository at this point in the history
  • Loading branch information
etimberg committed Jun 11, 2016
1 parent c4c58fd commit 2f3f2fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/chart.zoom.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ var ZoomPlugin = Chart.PluginBase.extend({
}
},

beforeElementDraw: function(chartInstance) {
beforeDatasetsDraw: function(chartInstance) {
var ctx = chartInstance.chart.ctx;
var chartArea = chartInstance.chartArea;
ctx.save();
Expand All @@ -252,7 +252,7 @@ var ZoomPlugin = Chart.PluginBase.extend({
ctx.clip();
},

afterElementDraw: function(chartInstance) {
afterDatasetsDraw: function(chartInstance) {
chartInstance.chart.ctx.restore();
},

Expand Down

0 comments on commit 2f3f2fd

Please sign in to comment.