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

Merge pull request #8342 from Snuffleupagus/eslint_object-shorthand-src-core

Enable the `object-shorthand` ESLint rule in `src/core`
This commit is contained in:
Tim van der Meij 2017-04-29 23:59:20 +02:00 committed by GitHub
commit 06c93d8fbd
22 changed files with 195 additions and 198 deletions

View file

@ -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;