Merge pull request #11879 from Snuffleupagus/eslint-grouped-accessor-pairs
Enable the ESLint `grouped-accessor-pairs` rule
This commit is contained in:
commit
9c341cfec6
@ -77,6 +77,7 @@
|
|||||||
"curly": ["error", "all"],
|
"curly": ["error", "all"],
|
||||||
"dot-notation": "error",
|
"dot-notation": "error",
|
||||||
"eqeqeq": ["error", "always"],
|
"eqeqeq": ["error", "always"],
|
||||||
|
"grouped-accessor-pairs": ["error", "getBeforeSet"],
|
||||||
"no-caller": "error",
|
"no-caller": "error",
|
||||||
"no-else-return": "error",
|
"no-else-return": "error",
|
||||||
"no-empty-pattern": "error",
|
"no-empty-pattern": "error",
|
||||||
|
@ -312,14 +312,14 @@ var PDFViewerApplication = {
|
|||||||
return this.pdfDocument.numPages;
|
return this.pdfDocument.numPages;
|
||||||
},
|
},
|
||||||
|
|
||||||
set page(val) {
|
|
||||||
this.pdfViewer.currentPageNumber = val;
|
|
||||||
},
|
|
||||||
|
|
||||||
get page() {
|
get page() {
|
||||||
return this.pdfViewer.currentPageNumber;
|
return this.pdfViewer.currentPageNumber;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
set page(val) {
|
||||||
|
this.pdfViewer.currentPageNumber = val;
|
||||||
|
},
|
||||||
|
|
||||||
zoomIn: function pdfViewZoomIn(ticks) {
|
zoomIn: function pdfViewZoomIn(ticks) {
|
||||||
var newScale = this.pdfViewer.currentScale;
|
var newScale = this.pdfViewer.currentScale;
|
||||||
do {
|
do {
|
||||||
|
@ -531,14 +531,14 @@ const PDFViewerApplication = {
|
|||||||
return this.pdfDocument ? this.pdfDocument.numPages : 0;
|
return this.pdfDocument ? this.pdfDocument.numPages : 0;
|
||||||
},
|
},
|
||||||
|
|
||||||
set page(val) {
|
|
||||||
this.pdfViewer.currentPageNumber = val;
|
|
||||||
},
|
|
||||||
|
|
||||||
get page() {
|
get page() {
|
||||||
return this.pdfViewer.currentPageNumber;
|
return this.pdfViewer.currentPageNumber;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
set page(val) {
|
||||||
|
this.pdfViewer.currentPageNumber = val;
|
||||||
|
},
|
||||||
|
|
||||||
get printing() {
|
get printing() {
|
||||||
return !!this.printService;
|
return !!this.printService;
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user