diff options
author | Mike Greiling <mike@pixelcog.com> | 2017-03-17 20:21:25 +0300 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2017-03-21 06:12:01 +0300 |
commit | d9dedc36c39abea9464551864094706cdad1bac0 (patch) | |
tree | 25a5b2c3a9e1e312a76d1181e7b1e0961e9fa35e /app/assets/javascripts/boards/boards_bundle.js | |
parent | 2cdfbbfc2f4b6e7627d1be43635bba64d082e803 (diff) |
remove Vue from the global space
Diffstat (limited to 'app/assets/javascripts/boards/boards_bundle.js')
-rw-r--r-- | app/assets/javascripts/boards/boards_bundle.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/app/assets/javascripts/boards/boards_bundle.js b/app/assets/javascripts/boards/boards_bundle.js index 3874c2819a5..149bfbc8e8b 100644 --- a/app/assets/javascripts/boards/boards_bundle.js +++ b/app/assets/javascripts/boards/boards_bundle.js @@ -1,12 +1,11 @@ /* eslint-disable one-var, quote-props, comma-dangle, space-before-function-paren */ -/* global Vue */ /* global BoardService */ +import Vue from 'vue'; +import VueResource from 'vue-resource'; import FilteredSearchBoards from './filtered_search_boards'; import eventHub from './eventhub'; -window.Vue = require('vue'); -window.Vue.use(require('vue-resource')); require('./models/issue'); require('./models/label'); require('./models/list'); @@ -24,6 +23,8 @@ require('./components/new_list_dropdown'); require('./components/modal/index'); require('../vue_shared/vue_resource_interceptor'); +Vue.use(VueResource); + $(() => { const $boardApp = document.getElementById('board-app'); const Store = gl.issueBoards.BoardsStore; |