Fix coding style in web/pdf_find_controller.js
This commit is contained in:
parent
2e09f14a80
commit
af4e977848
@ -13,11 +13,10 @@
|
|||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
/* globals PDFFindBar, PDFJS, FindStates, FirefoxCom, Promise */
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
/* globals PDFFindBar, PDFJS, FindStates, FirefoxCom, Promise */
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Provides a "search" or "find" functionality for the PDF.
|
* Provides a "search" or "find" functionality for the PDF.
|
||||||
* This object actually performs the search for a given string.
|
* This object actually performs the search for a given string.
|
||||||
@ -157,9 +156,10 @@ var PDFFindController = {
|
|||||||
self.pageContents.push(str);
|
self.pageContents.push(str);
|
||||||
|
|
||||||
extractTextPromisesResolves[pageIndex](pageIndex);
|
extractTextPromisesResolves[pageIndex](pageIndex);
|
||||||
if ((pageIndex + 1) < self.pdfPageSource.pages.length)
|
if ((pageIndex + 1) < self.pdfPageSource.pages.length) {
|
||||||
extractPageText(pageIndex + 1);
|
extractPageText(pageIndex + 1);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
extractPageText(0);
|
extractPageText(0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user