Skip to content

Commit

Permalink
Fast-Forward button upgraded
Browse files Browse the repository at this point in the history
  • Loading branch information
Boris Staal committed Jan 26, 2013
1 parent 7ededd1 commit f397d9e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,10 @@ class Application

fnext = =>
step = @input.transforms.find (x) => x.id > @currentStep
@jumpTo @currentFunction, step.id if step
if step
@jumpTo @currentFunction, step.id
else
@jumpTo @currentFunction, @currentStep+1

fprev = =>
step = @input.transforms.findAll((x) => x.id < @currentStep).last()
Expand Down
2 changes: 1 addition & 1 deletion sample.json

Large diffs are not rendered by default.

0 comments on commit f397d9e

Please sign in to comment.