Skip to content

Commit

Permalink
Fix google-chart-render event not firing
Browse files Browse the repository at this point in the history
  • Loading branch information
ukabu committed Nov 10, 2014
1 parent 3a1b721 commit c2ea1c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion google-chart.html
Original file line number Diff line number Diff line change
Expand Up @@ -214,11 +214,11 @@
}
}
if (this.chartObject) {
this.chartObject.draw(this.dataTable, this.options);
google.visualization.events.addOneTimeListener(this.chartObject,
'ready', function() {
this.fire('google-chart-render');
}.bind(this));
this.chartObject.draw(this.dataTable, this.options);
} else {
this.$.chartdiv.innerHTML = 'Undefined chart type';
}
Expand Down

0 comments on commit c2ea1c0

Please sign in to comment.