#149 - Fix error on beforeDestroy - VueJS v1

This commit is contained in:
DenisLapi
2017-07-22 10:01:29 +02:00
parent 88d2771175
commit 4c9f4fc5e5
9 changed files with 39 additions and 26 deletions

35
dist/vue-chartjs.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -63,6 +63,8 @@ export default Vue.extend({
} }
}, },
beforeDestroy () { beforeDestroy () {
this._chart.destroy() if (this._chart) {
this._chart.destroy()
}
} }
}) })

View File

@@ -46,6 +46,8 @@ export default Vue.extend({
} }
}, },
beforeDestroy () { beforeDestroy () {
this._chart.destroy() if (this._chart) {
this._chart.destroy()
}
} }
}) })

View File

@@ -46,6 +46,8 @@ export default Vue.extend({
} }
}, },
beforeDestroy () { beforeDestroy () {
this._chart.destroy() if (this._chart) {
this._chart.destroy()
}
} }
}) })

View File

@@ -61,6 +61,8 @@ export default Vue.extend({
} }
}, },
beforeDestroy () { beforeDestroy () {
this._chart.destroy() if (this._chart) {
this._chart.destroy()
}
} }
}) })

View File

@@ -46,6 +46,8 @@ export default Vue.extend({
} }
}, },
beforeDestroy () { beforeDestroy () {
this._chart.destroy() if (this._chart) {
this._chart.destroy()
}
} }
}) })

View File

@@ -46,6 +46,8 @@ export default Vue.extend({
} }
}, },
beforeDestroy () { beforeDestroy () {
this._chart.destroy() if (this._chart) {
this._chart.destroy()
}
} }
}) })

View File

@@ -46,6 +46,8 @@ export default Vue.extend({
} }
}, },
beforeDestroy () { beforeDestroy () {
this._chart.destroy() if (this._chart) {
this._chart.destroy()
}
} }
}) })