Skip to content

Commit d363e48

Browse files
authored
check for pre-installed vue-resource property
1 parent ed0deb0 commit d363e48

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: src/index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ import { has } from 'lodash';
55

66
function FormHelpers (Vue) {
77

8-
let formHelper = new Http(Vue.http);
8+
let http = Vue.hasOwnProperty('http') ? Vue.http : null;
9+
let formHelper = new Http(http);
910

1011
Object.defineProperty(Vue.prototype, '$forms', {
1112
get() {

0 commit comments

Comments
 (0)