1
0
Fork 0
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:
Fred Chasen 2015-12-15 20:12:46 -05:00
parent 57df816060
commit 05f1b92094
9 changed files with 1006 additions and 1798 deletions

View file

@ -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 () {