1
0
Fork 0
mirror of https://github.com/futurepress/epub.js.git synced 2025-10-03 14:59:18 +02:00

split rendering up into renderer, render, layout

This commit is contained in:
Fred Chasen 2014-01-17 18:39:38 -08:00
parent a5d970bca2
commit 0398b5eedf
22 changed files with 1149 additions and 840 deletions

View file

@ -5,7 +5,7 @@ EPUBJS.Hooks.register("beforeChapterDisplay").highlight = function(callback, ren
var s = document.createElement("style");
s.innerHTML =".highlight { background: yellow; font-weight: normal; }";
renderer.doc.head.appendChild(s);
renderer.render.document.head.appendChild(s);
if(callback) callback();