Skip to content

Commit

Permalink
Pass list of arguments instead of the first arguments.
Browse files Browse the repository at this point in the history
  • Loading branch information
billy-addepar committed Nov 13, 2017
1 parent c9a4885 commit 98b5cca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions addon/components/ember-table-header.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ export default class EmberTableHeader extends EmberTableBaseCell {
}

@action
onHeaderEvent(data) {
this.sendAction('onHeaderEvent', data);
onHeaderEvent() {
this.sendAction('onHeaderEvent', ...arguments);
}
}
4 changes: 2 additions & 2 deletions addon/components/ember-table.js
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ export default class EmberTable2 extends Component {
}

@action
onHeaderEvent(data) {
this.sendAction('onHeaderEvent', data);
onHeaderEvent() {
this.sendAction('onHeaderEvent', ...arguments);
}
}

0 comments on commit 98b5cca

Please sign in to comment.