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

Take annotation type in consideration to delete it.

This commit is contained in:
Bruno 2017-09-25 17:25:42 +02:00
parent 7102934822
commit 53b89dd844

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