Merge pull request #139 from ZhangYiJiang/patch-beforeDestroy

Fix beforeDestory when renderChart was not called
This commit is contained in:
Jakub
2017-07-04 09:59:24 +02:00
committed by GitHub
9 changed files with 27 additions and 9 deletions
+3 -1
View File
@@ -79,6 +79,8 @@ export default Vue.extend({
} }
}, },
beforeDestroy () { beforeDestroy () {
this._chart.destroy() if (this._chart) {
this._chart.destroy()
}
} }
}) })
+3 -1
View File
@@ -80,6 +80,8 @@ export default Vue.extend({
} }
}, },
beforeDestroy () { beforeDestroy () {
this._chart.destroy() if (this._chart) {
this._chart.destroy()
}
} }
}) })
+3 -1
View File
@@ -63,6 +63,8 @@ export default Vue.extend({
} }
}, },
beforeDestroy () { beforeDestroy () {
this._chart.destroy() if (this._chart) {
this._chart.destroy()
}
} }
}) })
+3 -1
View File
@@ -79,6 +79,8 @@ export default Vue.extend({
} }
}, },
beforeDestroy () { beforeDestroy () {
this._chart.destroy() if (this._chart) {
this._chart.destroy()
}
} }
}) })
+3 -1
View File
@@ -78,6 +78,8 @@ export default Vue.extend({
} }
}, },
beforeDestroy () { beforeDestroy () {
this._chart.destroy() if (this._chart) {
this._chart.destroy()
}
} }
}) })
+3 -1
View File
@@ -63,6 +63,8 @@ export default Vue.extend({
} }
}, },
beforeDestroy () { beforeDestroy () {
this._chart.destroy() if (this._chart) {
this._chart.destroy()
}
} }
}) })
+3 -1
View File
@@ -63,6 +63,8 @@ export default Vue.extend({
} }
}, },
beforeDestroy () { beforeDestroy () {
this._chart.destroy() if (this._chart) {
this._chart.destroy()
}
} }
}) })
+3 -1
View File
@@ -63,6 +63,8 @@ export default Vue.extend({
} }
}, },
beforeDestroy () { beforeDestroy () {
this._chart.destroy() if (this._chart) {
this._chart.destroy()
}
} }
}) })
+3 -1
View File
@@ -64,6 +64,8 @@ export default Vue.extend({
} }
}, },
beforeDestroy () { beforeDestroy () {
this._chart.destroy() if (this._chart) {
this._chart.destroy()
}
} }
}) })