Issue #2008 - Fix lint errors for src/core.js

This commit is contained in:
Jon Buckley 2013-01-31 18:31:11 -05:00
parent 4918c6f848
commit d59e2105b1

View File

@ -1,5 +1,6 @@
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */ /* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
/* globals assertWellFormed, calculateMD5, Catalog, error, info, isArray, isArrayBuffer, isDict, isName, isStream, isString, Lexer, Linearization, NullStream, PartialEvaluator, shadow, Stream, StreamsSequenceStream, stringToPDFString, TODO, Util, warn, XRef */
/* Copyright 2012 Mozilla Foundation /* Copyright 2012 Mozilla Foundation
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
@ -76,7 +77,7 @@ function getPdf(arg, callback) {
calledErrorBack = true; calledErrorBack = true;
params.error(); params.error();
} }
} };
} }
xhr.onreadystatechange = function getPdfOnreadystatechange(e) { xhr.onreadystatechange = function getPdfOnreadystatechange(e) {
@ -156,7 +157,7 @@ var Page = (function PageClosure() {
get rotate() { get rotate() {
var rotate = this.inheritPageProp('Rotate') || 0; var rotate = this.inheritPageProp('Rotate') || 0;
// Normalize rotation so it's a multiple of 90 and between 0 and 270 // Normalize rotation so it's a multiple of 90 and between 0 and 270
if (rotate % 90 != 0) { if (rotate % 90 !== 0) {
rotate = 0; rotate = 0;
} else if (rotate >= 360) { } else if (rotate >= 360) {
rotate = rotate % 360; rotate = rotate % 360;