Skip to content

Commit

Permalink
refactor: Remove sendAction() calls (#686)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichalBryxi authored and alexander-alvarez committed May 6, 2019
1 parent 38d6b71 commit 5e0e563
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions addon/mixins/table-header.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ export default Mixin.create({
column.set('sorted', true);
}
}
this.sendAction('onColumnClick', ...arguments);
this.onColumnClick && this.onColumnClick(...arguments);
},

/**
Expand All @@ -189,7 +189,7 @@ export default Mixin.create({
* @param {Event} event The click event
*/
onColumnDoubleClick(/* column */) {
this.sendAction('onColumnDoubleClick', ...arguments);
this.onColumnDoubleClick && this.onColumnDoubleClick(...arguments);
},

/**
Expand All @@ -200,7 +200,7 @@ export default Mixin.create({
* @param {String} width The final width of the column
*/
onColumnResized(/* column, width */) {
this.sendAction('onColumnResized', ...arguments);
this.onColumnResized && this.onColumnResized(...arguments);
},

/**
Expand All @@ -210,7 +210,7 @@ export default Mixin.create({
* @param {Column} column The column that is being dragged
*/
onColumnDrag(/* column */) {
this.sendAction('onColumnDrag', ...arguments);
this.onColumnDrag && this.onColumnDrag(...arguments);
},

/**
Expand All @@ -221,7 +221,7 @@ export default Mixin.create({
* @param {Boolean} isSuccess The column was successfully dropped and sorted
*/
onColumnDrop(/* column, isSuccess */) {
this.sendAction('onColumnDrop', ...arguments);
this.onColumnDrop && this.onColumnDrop(...arguments);
}
}
});

0 comments on commit 5e0e563

Please sign in to comment.