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

expanded readme

This commit is contained in:
Fred Chasen 2013-03-25 15:05:38 -07:00
parent b1f8c216d8
commit 716ff57d18
2 changed files with 35 additions and 2 deletions

View file

@ -1,7 +1,7 @@
FP.Hooks.register("beforeChapterDisplay").transculsions = function(callback, chapter){
var trans = chapter.doc.querySelectorAll('[transclusion]'),
items = Array.prototype.slice.call(trans);;
items = Array.prototype.slice.call(trans);
items.forEach(function(item){
var src = item.getAttribute("ref"),