mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-04 15:09:16 +02:00
Fix removing annotations with no type and attaching marks to invalid cfi
This commit is contained in:
parent
4f4a13fadb
commit
bbb05616ab
7 changed files with 14 additions and 11 deletions
|
@ -733,7 +733,7 @@ class DefaultViewManager {
|
|||
|
||||
if(this.views) {
|
||||
|
||||
this.views.each(function(view){
|
||||
this.views.forEach(function(view){
|
||||
if (view) {
|
||||
view.setLayout(layout);
|
||||
}
|
||||
|
@ -757,7 +757,7 @@ class DefaultViewManager {
|
|||
} else {
|
||||
this.overflow = this.settings.overflow;
|
||||
}
|
||||
// this.views.each(function(view){
|
||||
// this.views.forEach(function(view){
|
||||
// view.setAxis(axis);
|
||||
// });
|
||||
|
||||
|
@ -770,7 +770,7 @@ class DefaultViewManager {
|
|||
if (!this.views) {
|
||||
return contents;
|
||||
}
|
||||
this.views.each(function(view){
|
||||
this.views.forEach(function(view){
|
||||
const viewContents = view && view.contents;
|
||||
if (viewContents) {
|
||||
contents.push(viewContents);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue