1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-26 01:58:06 +02:00

Merge pull request #748 from arturadib/for-cache

For-loop cache
This commit is contained in:
notmasteryet 2011-11-05 20:24:46 -07:00
commit cd3ab6059d
9 changed files with 64 additions and 63 deletions

View file

@ -208,7 +208,7 @@ var Page = (function pagePage() {
ensureFonts: function pageEnsureFonts(fonts, callback) {
// Convert the font names to the corresponding font obj.
for (var i = 0; i < fonts.length; i++) {
for (var i = 0, ii = fonts.length; i < ii; i++) {
fonts[i] = this.objs.objs[fonts[i]].data;
}