Correct me if I'm wrong, but as far as I understand it onFinish will never get called. If you consider this line in index.js it compares the next_id with the number of steps and only triggers onFinish when the next_id is equal to the step count.
I thought onFinish would be called when you are on the second to last step and proceed to the last step. The problem is, since next_id is zero-based and the step length is not, when you're at the (n - 1)st step this line will never evaluate to true, since you're comparing against n.
Correct me if I'm wrong, but as far as I understand it
onFinish
will never get called. If you consider this line inindex.js
it compares thenext_id
with the number of steps and only triggersonFinish
when thenext_id
is equal to the step count.I thought
onFinish
would be called when you are on the second to last step and proceed to the last step. The problem is, sincenext_id
is zero-based and the step length is not, when you're at the(n - 1)
st step this line will never evaluate to true, since you're comparing againstn
.