1
0
Fork 0
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:
Fred Chasen 2016-08-24 22:00:28 +02:00
parent ff081bc389
commit 4e7276c151
5 changed files with 32 additions and 6 deletions

View file

@ -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