From 7cc5cc68e6dd16c27bb1c4517923bbf84e242f7e Mon Sep 17 00:00:00 2001 From: N Kort Date: Tue, 24 Oct 2017 11:29:05 +0200 Subject: [PATCH] replace vue.util methods --- src/main.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/main.js b/src/main.js index 461ea69..6a83d13 100644 --- a/src/main.js +++ b/src/main.js @@ -1,5 +1,3 @@ -import { util } from 'vue' - export default { data () { return { @@ -57,11 +55,11 @@ export default { fetch () { if (!this.$http) { - return util.warn('You need to provide a HTTP client', this) + throw new Error('You need to provide a HTTP client') } if (!this.src) { - return util.warn('You need to set the `src` property', this) + throw new Error('You need to set the `src` property') } const src = this.queryParamName @@ -123,7 +121,7 @@ export default { }, onHit () { - util.warn('You need to implement the `onHit` method', this) + throw new Error('You need to implement the `onHit` method') } } }