mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-04 15:09:16 +02:00
Allow checkLocation to return a promise
This commit is contained in:
parent
ff081bc389
commit
4e7276c151
5 changed files with 32 additions and 6 deletions
|
@ -635,7 +635,11 @@ Contents.prototype.fit = function(width, height){
|
|||
this.css("backgroundColor", "transparent");
|
||||
};
|
||||
|
||||
Contents.prototype.mapPage = function(cfiBase, start, end) {
|
||||
var mapping = new Mapping();
|
||||
|
||||
return mapping.page(this, cfiBase, start, end);
|
||||
};
|
||||
|
||||
Contents.prototype.destroy = function() {
|
||||
// Stop observing
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue