Skip to content

Commit

Permalink
Apply missing spread operator to method calls
Browse files Browse the repository at this point in the history
  • Loading branch information
jaswilli authored and jherdman committed Nov 22, 2021
1 parent 8dfc2a5 commit 9954877
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions addon/services/metrics.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,19 +174,19 @@ export default class Metrics extends Service {
}

identify() {
this.invoke('identify', arguments);
this.invoke('identify', ...arguments);
}

alias() {
this.invoke('alias', arguments);
this.invoke('alias', ...arguments);
}

trackEvent() {
this.invoke('trackEvent', arguments);
this.invoke('trackEvent', ...arguments);
}

trackPage() {
this.invoke('trackPage', arguments);
this.invoke('trackPage', ...arguments);
}

/**
Expand Down

0 comments on commit 9954877

Please sign in to comment.