Skip to content
This repository was archived by the owner on Jul 19, 2019. It is now read-only.

Commit bfe8a5a

Browse files
committed
Fix extra function
1 parent 6fe5ca9 commit bfe8a5a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/core.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ module.exports = {
2121
var extras = ['clear', 'stop', 'resize', 'toBase64Image', 'generateLegend', 'update', 'addData', 'removeData'];
2222
function extra(type) {
2323
classData[type] = function() {
24-
this.state.chart[name].apply(this.state.chart, arguments);
24+
return this.state.chart[type].apply(this.state.chart, arguments);
2525
};
2626
}
2727

0 commit comments

Comments
 (0)