mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-16 15:45:13 +00:00
19 lines
405 B
JavaScript
Executable File
19 lines
405 B
JavaScript
Executable File
define([
|
|
"jQuery"
|
|
], function() {
|
|
var state = {};
|
|
|
|
state.update = function(dom) {
|
|
var $book = $(dom.find(".book"));
|
|
|
|
state.$book = $book;
|
|
state.githubId = $book.data("github");
|
|
state.level = $book.data("level");
|
|
state.basePath = $book.data("basepath");
|
|
state.revision = $book.data("revision");
|
|
};
|
|
|
|
state.update($);
|
|
|
|
return state;
|
|
}); |