diff options
author | Samy Pessé <samypesse@gmail.com> | 2015-10-22 16:12:21 +0200 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2015-10-22 16:12:21 +0200 |
commit | 4bc56564b4ee7a4fedf34d4c585f2ba0efd3a8ae (patch) | |
tree | 4f7839f7e29f068b4f7c747d56abda053b874101 /theme/javascript/state.js | |
parent | 013f7f09da56b6a2666332705b593c065e884e3c (diff) | |
download | gitbook-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.js | 4 |
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 |