mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-05 15:32:55 +02:00
add incomplete epubcfi update
This commit is contained in:
parent
57df816060
commit
05f1b92094
9 changed files with 1006 additions and 1798 deletions
|
@ -627,12 +627,19 @@ Rendition.prototype.passViewEvents = function(view){
|
|||
view.listenedEvents.forEach(function(e){
|
||||
view.on(e, this.triggerViewEvent.bind(this));
|
||||
}.bind(this));
|
||||
|
||||
view.on("selected", this.triggerSelectedEvent.bind(this));
|
||||
};
|
||||
|
||||
Rendition.prototype.triggerViewEvent = function(e){
|
||||
this.trigger(e.type, e);
|
||||
};
|
||||
|
||||
Rendition.prototype.triggerSelectedEvent = function(cfirange){
|
||||
console.log(cfirange);
|
||||
this.trigger("selected", cfirange);
|
||||
};
|
||||
|
||||
Rendition.prototype.replacements = function(){
|
||||
// Wait for loading
|
||||
return this.q.enqueue(function () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue