diff options
Diffstat (limited to 'theme/javascript/core/state.js')
-rw-r--r-- | theme/javascript/core/state.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/theme/javascript/core/state.js b/theme/javascript/core/state.js new file mode 100644 index 0000000..fc67d7b --- /dev/null +++ b/theme/javascript/core/state.js @@ -0,0 +1,14 @@ +define([ + "jQuery" +], function() { + return function() { + var $book = $(".book"); + + return { + '$book': $book, + + 'githubId': $book.data("github"), + 'level': $book.data("level") + }; + }; +});
\ No newline at end of file |