Skip to content

Commit

Permalink
Allow null value for a custom filter
Browse files Browse the repository at this point in the history
  • Loading branch information
Hector Romero committed Oct 2, 2016
1 parent b7929cf commit 9e9efc3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/au-table.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,14 +132,14 @@ export class AureliaTableCustomAttribute {
}

passFilter(item, filter) {
if (filter.value === null || filter.value === undefined) {
return true;
}

if (typeof filter.custom === 'function') {
return filter.custom(filter.value, item);
}

if (filter.value === null || filter.value === undefined) {
return true;
}

for (let key of filter.keys) {
let value = this.getPropertyValue(item, key);

Expand Down

0 comments on commit 9e9efc3

Please sign in to comment.