1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-20 23:28:06 +02:00

Merge pull request #4331 from nnethercote/cleanups

Minor clean-ups
This commit is contained in:
Brendan Dahl 2014-02-26 12:06:13 -08:00
commit d0f87457d7
3 changed files with 11 additions and 20 deletions

View file

@ -60,10 +60,7 @@ var TextLayerBuilder = function textLayerBuilder(options) {
};
this.renderLayer = function textLayerBuilderRenderLayer() {
var self = this;
var textDivs = this.textDivs;
var bidiTexts = this.textContent;
var textLayerDiv = this.textLayerDiv;
var canvas = document.createElement('canvas');
var ctx = canvas.getContext('2d');
@ -93,7 +90,7 @@ var TextLayerBuilder = function textLayerBuilder(options) {
}
}
textLayerDiv.appendChild(textLayerFrag);
this.textLayerDiv.appendChild(textLayerFrag);
this.renderingDone = true;
this.updateMatches();
};