Open garychapman opened 9 years ago
Everything except that original 'selected' value is 1 based. The discrepancy was intentional for backwards compatibility with the original project.
To make it consistent I'd recommend deprecating 0-based selected
and supplementing it with a one-based selectedStep
or something of that sort.
I notice that
selected
is 0-based, but thecontext
variables supplied toonLeaveStep
andonShowStep
are 1-based. Is there a reason for this discrepancy?What convention is used by
errorSteps
,goToStep
,disableStep
,enableStep
and others?