Fixes cleaning up of the rendered pages

This commit is contained in:
Yury Delendik 2013-11-19 17:08:36 -06:00
parent 48e0deab7b
commit bd7985a83b
2 changed files with 4 additions and 7 deletions

View file

@ -67,16 +67,12 @@ var PageView = function pageView(container, id, scale,
}
};
this.resetRenderingState = function pageViewResetRenderingState() {
this.reset = function pageViewReset() {
if (this.renderTask) {
this.renderTask.cancel();
}
this.resume = null;
this.renderingState = RenderingStates.INITIAL;
};
this.reset = function pageViewReset() {
this.resetRenderingState();
div.style.width = Math.floor(this.viewport.width) + 'px';
div.style.height = Math.floor(this.viewport.height) + 'px';