From 5974dfebfb764c94acea04b64f072f1d37f4e1c9 Mon Sep 17 00:00:00 2001 From: shpuld Date: Tue, 5 Feb 2019 17:17:50 +0200 Subject: Fix mishandled @error in stillImage --- src/components/still-image/still-image.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/components/still-image/still-image.js') diff --git a/src/components/still-image/still-image.js b/src/components/still-image/still-image.js index 8f3a7206..02e98f19 100644 --- a/src/components/still-image/still-image.js +++ b/src/components/still-image/still-image.js @@ -24,6 +24,9 @@ const StillImage = { canvas.width = width canvas.height = height canvas.getContext('2d').drawImage(this.$refs.src, 0, 0, width, height) + }, + onError () { + this.imageLoadError && this.imageLoadError() } } } -- cgit v1.2.3-70-g09d2