1 // Generated by CoffeeScript 1.3.3
5 load_book: function(slug) {
6 return this.each(function() {
11 url: '/fixtures/katalog_lektura_lord-jim.html',
13 return console.log("Error " + e);
15 success: function(page) {
16 var $page, $text, $toc;
18 $text = $page.find('#book-text');
19 $toc = $text.find('#toc');
20 _this.toc = $toc.find('a').map(function(_i, link) {
28 return $('[data-role=header] h1', _this).text(_this.text.find('h1 .title').text());