Update regrettable.coffee

Added hasRedo and hasUndo
Merge pull request #1 from ohmycode/patch-1

Update regrettable.coffee