mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
Merge pull request #776 from jviereck/jpegimage_cleanup
Don't create JpegImage object anymore - go functional style
This commit is contained in:
commit
cb592d6e51
4 changed files with 14 additions and 34 deletions
|
@ -598,7 +598,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 instanceof JpegStream)
|
||||
this.cache[num] = e;
|
||||
return e;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue