1
0
Fork 0
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:
Fred Chasen 2017-10-04 18:45:15 -07:00
parent 4f4a13fadb
commit bbb05616ab
7 changed files with 14 additions and 11 deletions

View file

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