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

Inline JpegImageLoader to remove new JpegImageLoader call

This commit is contained in:
Julian Viereck 2011-12-05 17:59:03 +01:00
parent 685a263e54
commit 97802aac64
4 changed files with 14 additions and 35 deletions

View file

@ -589,7 +589,7 @@ var XRef = (function xRefXRef() {
e = parser.getObj();
}
// Don't cache streams since they are mutable (except images).
if (!isStream(e) || e.getImage)
if (!isStream(e) || e.src)
this.cache[num] = e;
return e;
}