summaryrefslogtreecommitdiffstats
path: root/theme/javascript/state.js
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2015-10-22 16:12:21 +0200
committerSamy Pessé <samypesse@gmail.com>2015-10-22 16:12:21 +0200
commit4bc56564b4ee7a4fedf34d4c585f2ba0efd3a8ae (patch)
tree4f7839f7e29f068b4f7c747d56abda053b874101 /theme/javascript/state.js
parent013f7f09da56b6a2666332705b593c065e884e3c (diff)
downloadgitbook-4bc56564b4ee7a4fedf34d4c585f2ba0efd3a8ae.zip
gitbook-4bc56564b4ee7a4fedf34d4c585f2ba0efd3a8ae.tar.gz
gitbook-4bc56564b4ee7a4fedf34d4c585f2ba0efd3a8ae.tar.bz2
Comment gitbook.state api
Diffstat (limited to 'theme/javascript/state.js')
-rw-r--r--theme/javascript/state.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/theme/javascript/state.js b/theme/javascript/state.js
index 5fde20f..34e94fe 100644
--- a/theme/javascript/state.js
+++ b/theme/javascript/state.js
@@ -10,7 +10,11 @@ state.update = function(dom) {
state.$book = $book;
state.level = $book.data('level');
state.basePath = $book.data('basepath');
+
+ // Date of build
state.revision = $book.data('revision');
+
+ // Original path of the file
state.filepath = $book.data('filepath');
// Absolute url to the root of the book