Skip to content

Commit

Permalink
updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
tinchoz49 committed Apr 8, 2017
1 parent c92b2bf commit 9f0f229
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,10 @@ function App({ emitter }) {
state.minutes = 0;
}

if (state.hours === 24) {
state.hours = 0;
}

emitter.emit('render');
});

Expand Down Expand Up @@ -189,6 +193,10 @@ function Clock({ emitter, props }) {
state.minutes = 0;
}

if (state.hours === 24) {
state.hours = 0;
}

emitter.emit('render');
});

Expand Down Expand Up @@ -236,7 +244,7 @@ function App() {
return h('div', [
component(Clock, { name: 'Clock 1' }),
component(Clock, { name: 'Clock 2', time: [5 ,20, 16] }),
component(Clock, { name: 'Clock 3', time: [24, 59, 40] })
component(Clock, { name: 'Clock 3', time: [23, 59, 40] })
]);
}

Expand Down

0 comments on commit 9f0f229

Please sign in to comment.