Refactors getTextContent return value

This commit is contained in:
Yury Delendik 2014-01-17 13:26:00 -06:00
parent 11e0ab3530
commit 96fff4cc74
4 changed files with 22 additions and 28 deletions

View file

@ -150,9 +150,7 @@ var PDFFindController = {
var self = this;
function extractPageText(pageIndex) {
self.pdfPageSource.pages[pageIndex].getTextContent().then(
function textContentResolved(data) {
// Build the find string.
var bidiTexts = data.bidiTexts;
function textContentResolved(bidiTexts) {
var str = '';
for (var i = 0; i < bidiTexts.length; i++) {