mirror of
				https://github.com/KevinMidboe/vue-chartjs.git
				synced 2025-10-29 18:00:20 +00:00 
			
		
		
		
	#149 - Fix error on beforeDestroy - VueJS v1
This commit is contained in:
		
							
								
								
									
										35
									
								
								dist/vue-chartjs.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										35
									
								
								dist/vue-chartjs.js
									
									
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
							
								
								
									
										2
									
								
								dist/vue-chartjs.js.map
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/vue-chartjs.js.map
									
									
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							| @@ -63,6 +63,8 @@ export default Vue.extend({ | |||||||
|     } |     } | ||||||
|   }, |   }, | ||||||
|   beforeDestroy () { |   beforeDestroy () { | ||||||
|     this._chart.destroy() |     if (this._chart) { | ||||||
|  |       this._chart.destroy() | ||||||
|  |     } | ||||||
|   } |   } | ||||||
| }) | }) | ||||||
|   | |||||||
| @@ -46,6 +46,8 @@ export default Vue.extend({ | |||||||
|     } |     } | ||||||
|   }, |   }, | ||||||
|   beforeDestroy () { |   beforeDestroy () { | ||||||
|     this._chart.destroy() |     if (this._chart) { | ||||||
|  |       this._chart.destroy() | ||||||
|  |     } | ||||||
|   } |   } | ||||||
| }) | }) | ||||||
|   | |||||||
| @@ -46,6 +46,8 @@ export default Vue.extend({ | |||||||
|     } |     } | ||||||
|   }, |   }, | ||||||
|   beforeDestroy () { |   beforeDestroy () { | ||||||
|     this._chart.destroy() |     if (this._chart) { | ||||||
|  |       this._chart.destroy() | ||||||
|  |     } | ||||||
|   } |   } | ||||||
| }) | }) | ||||||
|   | |||||||
| @@ -61,6 +61,8 @@ export default Vue.extend({ | |||||||
|     } |     } | ||||||
|   }, |   }, | ||||||
|   beforeDestroy () { |   beforeDestroy () { | ||||||
|     this._chart.destroy() |     if (this._chart) { | ||||||
|  |       this._chart.destroy() | ||||||
|  |     } | ||||||
|   } |   } | ||||||
| }) | }) | ||||||
|   | |||||||
| @@ -46,6 +46,8 @@ export default Vue.extend({ | |||||||
|     } |     } | ||||||
|   }, |   }, | ||||||
|   beforeDestroy () { |   beforeDestroy () { | ||||||
|     this._chart.destroy() |     if (this._chart) { | ||||||
|  |       this._chart.destroy() | ||||||
|  |     } | ||||||
|   } |   } | ||||||
| }) | }) | ||||||
|   | |||||||
| @@ -46,6 +46,8 @@ export default Vue.extend({ | |||||||
|     } |     } | ||||||
|   }, |   }, | ||||||
|   beforeDestroy () { |   beforeDestroy () { | ||||||
|     this._chart.destroy() |     if (this._chart) { | ||||||
|  |       this._chart.destroy() | ||||||
|  |     } | ||||||
|   } |   } | ||||||
| }) | }) | ||||||
|   | |||||||
| @@ -46,6 +46,8 @@ export default Vue.extend({ | |||||||
|     } |     } | ||||||
|   }, |   }, | ||||||
|   beforeDestroy () { |   beforeDestroy () { | ||||||
|     this._chart.destroy() |     if (this._chart) { | ||||||
|  |       this._chart.destroy() | ||||||
|  |     } | ||||||
|   } |   } | ||||||
| }) | }) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user