Lint fixes

pull/41/head
cagataycivici 2019-08-07 19:49:04 +03:00
parent 5ad5e7e41e
commit 5bed730cfe
2 changed files with 8 additions and 8 deletions

View File

@ -907,7 +907,7 @@ export default {
},
bindColumnResizeEvents() {
if (!this.documentColumnResizeListener) {
this.documentColumnResizeListener = document.addEventListener('mousemove', (event) => {
this.documentColumnResizeListener = document.addEventListener('mousemove', () => {
if(this.columnResizing) {
this.onColumnResize(event);
}
@ -915,7 +915,7 @@ export default {
}
if (!this.documentColumnResizeEndListener) {
this.documentColumnResizeEndListener = document.addEventListener('mouseup', (event) => {
this.documentColumnResizeEndListener = document.addEventListener('mouseup', () => {
if(this.columnResizing) {
this.columnResizing = false;
this.onColumnResizeEnd();

View File

@ -539,7 +539,7 @@ export default {
if (this.filters.hasOwnProperty(col.field)) {
let filterMatchMode = col.filterMatchMode;
let filterValue = this.filters[col.field];
let filterConstraint = FilterUtils[col.filterMatchMode];
let filterConstraint = FilterUtils[filterMatchMode];
let paramsWithoutNode = {filterField, filterValue, filterConstraint, strict};
if ((strict && !(this.findFilteredNodes(copyNode, paramsWithoutNode) || this.isFilterMatched(copyNode, paramsWithoutNode))) ||
@ -557,10 +557,10 @@ export default {
let copyNodeForGlobal = {...copyNode};
let globalFilterValue = this.props.globalFilter;
let globalFilterConstraint = ObjectUtils.filterConstraints['contains'];
paramsWithoutNode = {filterField, globalFilterValue, globalFilterConstraint, strict};
let globalFilterParamsWithoutNode = {filterField, globalFilterValue, globalFilterConstraint, strict};
if ((strict && (this.findFilteredNodes(copyNodeForGlobal, paramsWithoutNode) || this.isFilterMatched(copyNodeForGlobal, paramsWithoutNode))) ||
(!strict && (this.isFilterMatched(copyNodeForGlobal, paramsWithoutNode) || this.findFilteredNodes(copyNodeForGlobal, paramsWithoutNode)))) {
if ((strict && (this.findFilteredNodes(copyNodeForGlobal, globalFilterParamsWithoutNode) || this.isFilterMatched(copyNodeForGlobal, globalFilterParamsWithoutNode))) ||
(!strict && (this.isFilterMatched(copyNodeForGlobal, globalFilterParamsWithoutNode) || this.findFilteredNodes(copyNodeForGlobal, globalFilterParamsWithoutNode)))) {
globalMatch = true;
copyNode = copyNodeForGlobal;
}
@ -674,7 +674,7 @@ export default {
},
bindColumnResizeEvents() {
if (!this.documentColumnResizeListener) {
this.documentColumnResizeListener = document.addEventListener('mousemove', (event) => {
this.documentColumnResizeListener = document.addEventListener('mousemove', () => {
if(this.columnResizing) {
this.onColumnResize(event);
}
@ -682,7 +682,7 @@ export default {
}
if (!this.documentColumnResizeEndListener) {
this.documentColumnResizeEndListener = document.addEventListener('mouseup', (event) => {
this.documentColumnResizeEndListener = document.addEventListener('mouseup', () => {
if(this.columnResizing) {
this.columnResizing = false;
this.onColumnResizeEnd();