Skip to content

Commit

Permalink
this adds a finally command to work as advertised in my ticket here
Browse files Browse the repository at this point in the history
  • Loading branch information
FugueNation committed Oct 20, 2011
1 parent b4dc7bd commit 70328a7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,9 @@ function builder (saw, xs) {
saw.next();
};

[ 'seq', 'par' ].forEach(function (name) {
this['finally'] = this.seq;

[ 'seq', 'par', 'finally' ].forEach(function (name) {
this[name + '_'] = function (key) {
var args = [].slice.call(arguments);

Expand Down

0 comments on commit 70328a7

Please sign in to comment.