diff options
author | Samy Pessé <samypesse@gmail.com> | 2014-04-06 17:13:32 -0700 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2014-04-06 17:13:32 -0700 |
commit | 4c36c592c1cccfbbb7843d74846a5f908bfcab4e (patch) | |
tree | e311663f4303f221b14559217fb5ec02fdb2dc04 /theme/javascript/core/state.js | |
parent | c166a9863ec6c098d5dc2ac11f383214ea9bb246 (diff) | |
parent | 9ffb1a062f6bfa4c3253eb40c89ba54e6e429fe4 (diff) | |
download | gitbook-4c36c592c1cccfbbb7843d74846a5f908bfcab4e.zip gitbook-4c36c592c1cccfbbb7843d74846a5f908bfcab4e.tar.gz gitbook-4c36c592c1cccfbbb7843d74846a5f908bfcab4e.tar.bz2 |
Merge pull request #40 from GitbookIO/feature/searchclient
Feature/searchclient
Diffstat (limited to 'theme/javascript/core/state.js')
-rw-r--r-- | theme/javascript/core/state.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/theme/javascript/core/state.js b/theme/javascript/core/state.js index fc67d7b..79876b9 100644 --- a/theme/javascript/core/state.js +++ b/theme/javascript/core/state.js @@ -1,14 +1,14 @@ define([ "jQuery" ], function() { - return function() { - var $book = $(".book"); + var $book = $(".book"); - return { - '$book': $book, + return { + '$book': $book, - 'githubId': $book.data("github"), - 'level': $book.data("level") - }; + 'githubId': $book.data("github"), + 'level': $book.data("level"), + 'basePath': $book.data("basepath"), + 'revision': $book.data("revision") }; });
\ No newline at end of file |