Files
gitbook/theme/javascript/core/state.js
T
2015-01-20 11:29:26 +01:00

18 lines
358 B
JavaScript
Executable File

define([
"jQuery"
], function() {
var state = {};
state.update = function(dom) {
var $book = $(dom.find(".book"));
state.$book = $book;
state.level = $book.data("level");
state.basePath = $book.data("basepath");
state.revision = $book.data("revision");
};
state.update($);
return state;
});