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

Merge pull request #662 from bdauria/v0.3

Take annotation type in consideration to delete it.
This commit is contained in:
Fred Chasen 2017-09-25 18:00:25 -07:00 committed by GitHub
commit 3397c41a6b

View file

@ -74,7 +74,9 @@ class Annotations {
if (hash in this._annotations) {
let annotation = this._annotations[hash];
if (annotation.type !== type) {
return;
}
let contents = this.rendition.getContents();
contents.forEach( (content) => {
if (annotation.sectionIndex === content.sectionIndex) {