1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-25 09:38:06 +02:00

Use a cache to minimize the number of Name objects.

This commit is contained in:
Nicholas Nethercote 2014-02-27 20:41:03 -08:00
parent cab5d7b96f
commit fdb7c218da
8 changed files with 18 additions and 14 deletions

View file

@ -548,7 +548,7 @@ var CipherTransformFactory = (function CipherTransformFactoryClosure() {
return userPassword;
}
var identityName = new Name('Identity');
var identityName = Name.get('Identity');
function CipherTransformFactory(dict, fileId, password) {
var filter = dict.get('Filter');