Fixes reflow view missing spineItem property in pagination event, see
MODIFY
js/views/reflowable_view.js
js/views/reflowable_view.js
@@ -865,10 +865,10 @@ var ReflowableView = function(options, reader){
_paginationInfo.currentPageIndex = 0; // current page index is not stable, reset it
self.restoreCurrentPosition();
} else {
- onPaginationChanged(self); // => redraw() => showBook(), so the trick below is not needed
+ onPaginationChanged(self, _currentSpineItem); // => redraw() => showBook(), so the trick below is not needed
}
- //onPaginationChanged(self); // => redraw() => showBook(), so the trick below is not needed
+ //onPaginationChanged(self, _currentSpineItem); // => redraw() => showBook(), so the trick below is not needed
// //We do this to force re-rendering of the document in the iframe.
// //There is a bug in WebView control with right to left columns layout - after resizing the window html document
@@ -876,7 +876,7 @@ var ReflowableView = function(options, reader){
// _$epubHtml.hide();
// setTimeout(function() {
// _$epubHtml.show();
- // onPaginationChanged(self); // => redraw() => showBook()
+ // onPaginationChanged(self, _currentSpineItem); // => redraw() => showBook()
// }, 50);
}

Fixes reflow view missing spineItem property in pagination event, see https://github.com/readium/readium-shared-js/issues/407