Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix steps flow #243

Closed
wants to merge 4 commits into from
Closed

Fix steps flow #243

wants to merge 4 commits into from

Conversation

jayesbe
Copy link
Contributor

@jayesbe jayesbe commented Apr 20, 2016

Remove apparently useless lines.

Take this example. 3 steps. 1st step is not-skipped. 2nd step will be skipped.  The form skips straight to step 3 because the second step is skipped even though the first isnt. Adding the break when the current step is false AND its still false after evaluation makes sense.
The refine current step is recursively sending the entire array back into its self. Why? it doesnt make sense. 
Whats happening is this. If you have an array of say 3 steps. If say the 1st step is set to be skipped, it will send the entire array back into itself and iterate over all steps again.  This means if you have a form with 10 steps, it may iterate at a worst case 10 + 9 + 8 + 7 ... 1 times..
Trying to simplify this refining process
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.001%) to 99.747% when pulling fcd4480 on jayesbe:fix-steps-flow into 960e233 on craue:master.

@craue craue closed this in 551482e Apr 20, 2016
@craue
Copy link
Owner

craue commented Apr 20, 2016

Thank you, @jayesbe.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants