diff options
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 |