summaryrefslogtreecommitdiffstats
path: root/theme/javascript/core/global.js
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2014-04-19 20:10:03 +0200
committerSamy Pessé <samypesse@gmail.com>2014-04-19 20:10:03 +0200
commit2ed1be353354c92367b6583cc908911a49c07f9a (patch)
treebd833acd526c84c3cc7164859ba1011e7fcae015 /theme/javascript/core/global.js
parent0ac04e15844d83c7fa0f805a256449a7eb88e822 (diff)
downloadgitbook-2ed1be353354c92367b6583cc908911a49c07f9a.zip
gitbook-2ed1be353354c92367b6583cc908911a49c07f9a.tar.gz
gitbook-2ed1be353354c92367b6583cc908911a49c07f9a.tar.bz2
Add global js interface for plugins and remove mixpanel
Diffstat (limited to 'theme/javascript/core/global.js')
-rw-r--r--theme/javascript/core/global.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/theme/javascript/core/global.js b/theme/javascript/core/global.js
new file mode 100644
index 0000000..0c75cdc
--- /dev/null
+++ b/theme/javascript/core/global.js
@@ -0,0 +1,8 @@
+define([
+ "jQuery"
+], function($) {
+ // Interface for plugins
+ window.gitbook = $({});
+
+ return window.gitbook;
+}); \ No newline at end of file