Skip to content

Commit

Permalink
Object.entries -> Object.keys
Browse files Browse the repository at this point in the history
  • Loading branch information
RobbieTheWagner committed Jul 24, 2019
1 parent 2e2d68d commit 2edb89a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/step.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,8 @@ export class Step extends Evented {
this.id = this.options.id || `step-${uniqueId()}`;

if (when) {
Object.entries(when).forEach(([event, handler]) => {
this.on(event, handler, this);
Object.keys(when).forEach((event) => {
this.on(event, when[event], this);
});
}
}
Expand Down

0 comments on commit 2edb89a

Please sign in to comment.