Merge pull request #291 from apertureless/feature/fix_reactive_mixins

fix(mixins): Check for chartjs instance before rendering chart
This commit is contained in:
Jakub
2018-01-12 13:16:43 +01:00
committed by GitHub
3 changed files with 550 additions and 482 deletions
+3
View File
@@ -63,6 +63,9 @@ module.exports = {
this.renderChart(this.chartData, this.options)
}
} else {
if (this.$data._chart) {
this.$data._chart.destroy()
}
this.renderChart(this.chartData, this.options)
}
}
+3
View File
@@ -63,6 +63,9 @@ module.exports = {
this.renderChart(this.chartData, this.options)
}
} else {
if (this.$data._chart) {
this.$data._chart.destroy()
}
this.renderChart(this.chartData, this.options)
}
}
+544 -482
View File
File diff suppressed because it is too large Load Diff