summaryrefslogtreecommitdiffstats
path: root/theme/javascript/core/state.js
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2014-04-06 16:10:25 -0700
committerSamy Pessé <samypesse@gmail.com>2014-04-06 16:10:25 -0700
commit607b45f17261db2b66bbe797c2ef32c00755f624 (patch)
tree2195970fc0e0ff71e33ad508cc453169f39ed94d /theme/javascript/core/state.js
parentff52a2317b435d778fce232527b6a4b968a178ff (diff)
downloadgitbook-607b45f17261db2b66bbe797c2ef32c00755f624.zip
gitbook-607b45f17261db2b66bbe797c2ef32c00755f624.tar.gz
gitbook-607b45f17261db2b66bbe797c2ef32c00755f624.tar.bz2
Change norm of core/state
Diffstat (limited to 'theme/javascript/core/state.js')
-rw-r--r--theme/javascript/core/state.js12
1 files changed, 5 insertions, 7 deletions
diff --git a/theme/javascript/core/state.js b/theme/javascript/core/state.js
index fc67d7b..b219f5d 100644
--- a/theme/javascript/core/state.js
+++ b/theme/javascript/core/state.js
@@ -1,14 +1,12 @@
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")
};
}); \ No newline at end of file