[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [atlas/master] Ensure that bootstrap loads after jQuery



commit 891a5fca398b0a3ec0256c5c2b176f24c230e386
Author: Iain R. Learmonth <irl@xxxxxxxx>
Date:   Sun Nov 26 20:51:28 2017 +0000

    Ensure that bootstrap loads after jQuery
---
 js/main.js | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/js/main.js b/js/main.js
index cc18403..69de082 100644
--- a/js/main.js
+++ b/js/main.js
@@ -3,6 +3,9 @@
 // based on work done by @jrburke
 // Configure require.js shortcut aliases
 require.config({
+  shim : {
+    "bootstrap" : { "deps" :['jquery'] }
+  },
   paths: {
     jquery: 'https://metrics.torproject.org/js/jquery-3.2.1.min',
     underscore: 'libs/underscore/underscore-min',

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits