Skip to content

Commit e6bf89b

Browse files
committed
cleanup: remove unused property from computed watchlist
1 parent a896e0c commit e6bf89b

1 file changed

Lines changed: 12 additions & 16 deletions

File tree

addon/-private/collapse-tree.js

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -45,24 +45,20 @@ export const TableRowMeta = EmberObject.extend({
4545
}),
4646

4747
// eslint-disable-next-line ember/use-brace-expansion
48-
isSelected: computed(
49-
'_tree.{selection.[],selectionMatchFunction}',
50-
'_parentMeta.isSelected',
51-
function() {
52-
let rowValue = get(this, '_rowValue');
53-
let selection = get(this, '_tree.selection');
54-
let selectionMatchFunction = get(this, '_tree.selectionMatchFunction');
55-
56-
if (isArray(selection)) {
57-
return this.get('isGroupSelected');
58-
}
48+
isSelected: computed('_tree.{selection.[],selectionMatchFunction}', function() {
49+
let rowValue = get(this, '_rowValue');
50+
let selection = get(this, '_tree.selection');
51+
let selectionMatchFunction = get(this, '_tree.selectionMatchFunction');
5952

60-
let isRowSelection = selectionMatchFunction
61-
? selectionMatchFunction(selection, rowValue)
62-
: selection === rowValue;
63-
return isRowSelection || get(this, '_parentMeta.isSelected');
53+
if (isArray(selection)) {
54+
return this.get('isGroupSelected');
6455
}
65-
),
56+
57+
let isRowSelection = selectionMatchFunction
58+
? selectionMatchFunction(selection, rowValue)
59+
: selection === rowValue;
60+
return isRowSelection || get(this, '_parentMeta.isSelected');
61+
}),
6662

6763
isGroupSelected: computed(
6864
'_tree.{selection.[],selectionMatchFunction}',

0 commit comments

Comments
 (0)