зеркало из https://github.com/mozilla/gecko-dev.git
No bug, fix eslint errors introduced when enabling more rules in .eslintrc.js, rs=bustage
MozReview-Commit-ID: GADYtKhyd50 --HG-- extra : rebase_source : 3e2eb3ef0ab081396996cf98452d1b0a7d6bf5ab
This commit is contained in:
Родитель
c2a6d8e4a3
Коммит
e42c48fb95
|
@ -118,7 +118,7 @@ var AboutReader = function(mm, win, articlePromise) {
|
|||
}
|
||||
|
||||
this._loadArticle();
|
||||
}
|
||||
};
|
||||
|
||||
AboutReader.prototype = {
|
||||
_BLOCK_IMAGES_SELECTOR: ".content p > img:only-child, " +
|
||||
|
@ -696,7 +696,7 @@ AboutReader.prototype = {
|
|||
} else {
|
||||
img.removeAttribute("moz-reader-center");
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
let imgs = this._doc.querySelectorAll(this._BLOCK_IMAGES_SELECTOR);
|
||||
for (let i = imgs.length; --i >= 0;) {
|
||||
|
@ -707,7 +707,7 @@ AboutReader.prototype = {
|
|||
} else {
|
||||
img.onload = function() {
|
||||
setImageMargins(img);
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
@ -289,7 +289,7 @@ this.ReaderMode = {
|
|||
}
|
||||
resolve(doc);
|
||||
histogram.add(DOWNLOAD_SUCCESS);
|
||||
}
|
||||
};
|
||||
xhr.send();
|
||||
});
|
||||
},
|
||||
|
|
Загрузка…
Ссылка в новой задаче