Skip to content

Commit

Permalink
Fix references to private _plugins data property
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-shuy committed Dec 13, 2017
1 parent dd9a5b8 commit 072724f
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions src/BaseCharts/Bar.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export default {

methods: {
addPlugin (plugin) {
this._plugins.push(plugin)
this.$data._plugins.push(plugin)
},
renderChart (data, options) {
let chartOptions = mergeOptions(this.defaultOptions, options)
Expand All @@ -86,7 +86,7 @@ export default {
type: 'bar',
data: data,
options: chartOptions,
plugins: this._plugins
plugins: this.$data._plugins
}
)
}
Expand Down
4 changes: 2 additions & 2 deletions src/BaseCharts/Bubble.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export default {

methods: {
addPlugin (plugin) {
this._plugins.push(plugin)
this.$data._plugins.push(plugin)
},
renderChart (data, options) {
let chartOptions = mergeOptions(this.defaultOptions, options)
Expand All @@ -89,7 +89,7 @@ export default {
type: 'bubble',
data: data,
options: chartOptions,
plugins: this._plugins
plugins: this.$data._plugins
}
)
}
Expand Down
4 changes: 2 additions & 2 deletions src/BaseCharts/Doughnut.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export default {

methods: {
addPlugin (plugin) {
this._plugins.push(plugin)
this.$data._plugins.push(plugin)
},
renderChart (data, options) {
let chartOptions = mergeOptions(this.defaultOptions, options)
Expand All @@ -72,7 +72,7 @@ export default {
type: 'doughnut',
data: data,
options: chartOptions,
plugins: this._plugins
plugins: this.$data._plugins
}
)
}
Expand Down
4 changes: 2 additions & 2 deletions src/BaseCharts/HorizontalBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export default {

methods: {
addPlugin (plugin) {
this._plugins.push(plugin)
this.$data._plugins.push(plugin)
},
renderChart (data, options, type) {
let chartOptions = mergeOptions(this.defaultOptions, options)
Expand All @@ -88,7 +88,7 @@ export default {
type: 'horizontalBar',
data: data,
options: chartOptions,
plugins: this._plugins
plugins: this.$data._plugins
}
)
}
Expand Down
4 changes: 2 additions & 2 deletions src/BaseCharts/Line.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export default {

methods: {
addPlugin (plugin) {
this._plugins.push(plugin)
this.$data._plugins.push(plugin)
},
renderChart (data, options) {
let chartOptions = mergeOptions(this.defaultOptions, options)
Expand All @@ -87,7 +87,7 @@ export default {
type: 'line',
data: data,
options: chartOptions,
plugins: this._plugins
plugins: this.$data._plugins
}
)
}
Expand Down
4 changes: 2 additions & 2 deletions src/BaseCharts/Pie.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export default {

methods: {
addPlugin (plugin) {
this._plugins.push(plugin)
this.$data._plugins.push(plugin)
},
renderChart (data, options) {
let chartOptions = mergeOptions(this.defaultOptions, options)
Expand All @@ -72,7 +72,7 @@ export default {
type: 'pie',
data: data,
options: chartOptions,
plugins: this._plugins
plugins: this.$data._plugins
}
)
}
Expand Down
4 changes: 2 additions & 2 deletions src/BaseCharts/PolarArea.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export default {

methods: {
addPlugin (plugin) {
this._plugins.push(plugin)
this.$data._plugins.push(plugin)
},
renderChart (data, options) {
let chartOptions = mergeOptions(this.defaultOptions, options)
Expand All @@ -72,7 +72,7 @@ export default {
type: 'polarArea',
data: data,
options: chartOptions,
plugins: this._plugins
plugins: this.$data._plugins
}
)
}
Expand Down
4 changes: 2 additions & 2 deletions src/BaseCharts/Radar.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export default {

methods: {
addPlugin (plugin) {
this._plugins.push(plugin)
this.$data._plugins.push(plugin)
},
renderChart (data, options) {
let chartOptions = mergeOptions(this.defaultOptions, options)
Expand All @@ -72,7 +72,7 @@ export default {
type: 'radar',
data: data,
options: chartOptions,
plugins: this._plugins
plugins: this.$data._plugins
}
)
}
Expand Down
4 changes: 2 additions & 2 deletions src/BaseCharts/Scatter.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export default {

methods: {
addPlugin (plugin) {
this._plugins.push(plugin)
this.$data._plugins.push(plugin)
},
renderChart (data, options) {
let chartOptions = mergeOptions(this.defaultOptions, options)
Expand All @@ -78,7 +78,7 @@ export default {
type: 'scatter',
data: data,
options: chartOptions,
plugins: this._plugins
plugins: this.$data._plugins
}
)
}
Expand Down

0 comments on commit 072724f

Please sign in to comment.