Merge pull request #1430 from kkujala/master

Fix a couple of closure names.
This commit is contained in:
Brendan Dahl 2012-03-27 19:21:03 -07:00
commit e641dabd2c
4 changed files with 4 additions and 4 deletions

View File

@ -785,7 +785,7 @@ var PDFDoc = (function PDFDocClosure() {
error('Only 3 component or 1 component can be returned');
var img = new Image();
img.onload = (function jpegImageLoaderOnload() {
img.onload = (function messageHandler_onloadClosure() {
var width = img.width;
var height = img.height;
var size = width * height;

View File

@ -4247,7 +4247,7 @@ var CFFFDSelect = (function CFFFDSelectClosure() {
// Helper class to keep track of where an offset is within the data and helps
// filling in that offset once it's known.
var CFFOffsetTracker = (function CFFOffsetTracker() {
var CFFOffsetTracker = (function CFFOffsetTrackerClosure() {
function CFFOffsetTracker() {
this.offsets = {};
}

View File

@ -365,7 +365,7 @@ var PDFImage = (function PDFImageClosure() {
function loadJpegStream(id, imageData, objs) {
var img = new Image();
img.onload = (function jpegImageLoaderOnload() {
img.onload = (function loadJpegStream_onloadClosure() {
objs.resolve(id, img);
});
img.src = 'data:image/jpeg;base64,' + window.btoa(imageData);

View File

@ -159,7 +159,7 @@ var JpxImage = (function JpxImageClosure() {
})();
// Implements C.3. Arithmetic decoding procedures
var ArithmeticDecoder = (function arithmeticDecoderClosure() {
var ArithmeticDecoder = (function ArithmeticDecoderClosure() {
var QeTable = [
{qe: 0x5601, nmps: 1, nlps: 1, switchFlag: 1},
{qe: 0x3401, nmps: 2, nlps: 6, switchFlag: 0},