[beast: 19/47] EBEAST: vc/includes.js: properly load jQuery, utilities, Vue, components
- From: Tim Janik <timj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [beast: 19/47] EBEAST: vc/includes.js: properly load jQuery, utilities, Vue, components
- Date: Sat, 2 Sep 2017 00:43:31 +0000 (UTC)
commit 6057e79dde32338c654ac3fd8e5b829399546f93
Author: Tim Janik <timj gnu org>
Date: Tue Apr 11 01:21:10 2017 +0200
EBEAST: vc/includes.js: properly load jQuery, utilities, Vue, components
Signed-off-by: Tim Janik <timj gnu org>
ebeast/vc/includes.js | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/ebeast/vc/includes.js b/ebeast/vc/includes.js
index ab7c791..b1c660d 100644
--- a/ebeast/vc/includes.js
+++ b/ebeast/vc/includes.js
@@ -1,7 +1,17 @@
// GNU LGPL v2.1+: http://www.gnu.org/licenses/lgpl.html
'use strict';
+// pull in jQuery
+console.assert (window.jQuery === undefined);
+window.$ = window.jQuery = require ('jquery');
+
+// load utilities
+require ('./hotkeys.js'); // adds $.click_hotkey()
+
// load Vue core
+console.assert (window.Vue === undefined);
const Vue = require ('vue/dist/vue.common.js');
window.Vue = Vue;
+// load Vue components, bundled from ./bundle.js
+require ('../objects/vc-bundle.js');
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]