Fixed lint errors

pull/14/head
cagataycivici 2019-07-09 12:57:21 +03:00
parent 04ed4a823e
commit 641856265d
1 changed files with 4 additions and 4 deletions

View File

@ -471,7 +471,7 @@ export default {
if (this.isMultipleSelectionMode() && event.shiftKey && this.anchorRowIndex != null) { if (this.isMultipleSelectionMode() && event.shiftKey && this.anchorRowIndex != null) {
DomHandler.clearSelection(); DomHandler.clearSelection();
this.rangeRowIndex = rowIndex; this.rangeRowIndex = rowIndex;
this.selectRange(event, rowIndex); this.selectRange(event);
} }
else { else {
const selected = this.isSelected(rowData); const selected = this.isSelected(rowData);
@ -547,7 +547,7 @@ export default {
switch (event.which) { switch (event.which) {
//down arrow //down arrow
case 40: case 40:
let nextRow = this.findNextSelectableRow(row); var nextRow = this.findNextSelectableRow(row);
if (nextRow) { if (nextRow) {
nextRow.focus(); nextRow.focus();
} }
@ -557,7 +557,7 @@ export default {
//up arrow //up arrow
case 38: case 38:
let prevRow = this.findPrevSelectableRow(row); var prevRow = this.findPrevSelectableRow(row);
if (prevRow) { if (prevRow) {
prevRow.focus(); prevRow.focus();
} }
@ -661,7 +661,7 @@ export default {
return 'p-datatable-row'; return 'p-datatable-row';
} }
}, },
selectRange(event, rowIndex) { selectRange(event) {
let rangeStart, rangeEnd; let rangeStart, rangeEnd;
if (this.rangeRowIndex > this.anchorRowIndex) { if (this.rangeRowIndex > this.anchorRowIndex) {