},
getOperatorList: function Page_getOperatorList(handler, dependency) {
- if (this.operatorList) {
- // content was compiled
- return this.operatorList;
- }
-
var xref = this.xref;
var content = this.content;
var resources = this.resources;
var pe = this.pe = new PartialEvaluator(
xref, handler, 'p' + this.pageNumber + '_');
- this.operatorList = pe.getOperatorList(content, resources, dependency);
- return this.operatorList;
+ return pe.getOperatorList(content, resources, dependency);
},
getLinks: function Page_getLinks() {
data.splice(i);
data.push(view);
if (data.length > size)
- data.shift().update();
+ data.shift().destroy();
};
};
container.appendChild(anchor);
container.appendChild(div);
+ this.destroy = function pageViewDestroy() {
+ this.update();
+ this.pdfPage.destroy();
+ };
+
this.update = function pageViewUpdate(scale) {
this.scale = scale || this.scale;
var viewport = this.pdfPage.getViewport(this.scale);
div.removeAttribute('data-loaded');
delete this.canvas;
- this.pdfPage.destroy();
this.loadingIconDiv = document.createElement('div');
this.loadingIconDiv.className = 'loadingIcon';