mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
Enable the object-shorthand
ESLint rule in src/shared
Please see http://eslint.org/docs/rules/object-shorthand. For the most part, these changes are of the search-and-replace kind, and the previously enabled `no-undef` rule should complement the tests in helping ensure that no stupid errors crept into to the patch.
This commit is contained in:
parent
f91d01cad3
commit
afc74b0178
22 changed files with 195 additions and 198 deletions
|
@ -41,7 +41,7 @@ var Jbig2Image = (function Jbig2ImageClosure() {
|
|||
function ContextCache() {}
|
||||
|
||||
ContextCache.prototype = {
|
||||
getContexts: function(id) {
|
||||
getContexts(id) {
|
||||
if (id in this) {
|
||||
return this[id];
|
||||
}
|
||||
|
@ -720,7 +720,7 @@ var Jbig2Image = (function Jbig2ImageClosure() {
|
|||
position = segmentHeader.headerEnd;
|
||||
var segment = {
|
||||
header: segmentHeader,
|
||||
data: data
|
||||
data,
|
||||
};
|
||||
if (!header.randomAccess) {
|
||||
segment.start = position;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue