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

@ -86,7 +86,7 @@ var WorkerMessageHandler = {
// Filter the dependecies for fonts.
var fonts = {};
for (var i = 0; i < dependency.length; i++) {
for (var i = 0, ii = dependency.length; i < ii; i++) {
var dep = dependency[i];
if (dep.indexOf('font_') == 0) {
fonts[dep] = true;