Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Fixed bug in example code
  • Loading branch information
Warren Benedetto committed Dec 17, 2012
1 parent 2beeb5e commit e43868a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -441,13 +441,13 @@ This will insert the function(s) as the next in the sequence, with the rest of t
```javascript
var doFirst = function(seq){
console.log('First');
seq.insertStep(doFirstAdded);
seq.insertStep(doFirstInserted);
seq.next();
};

var doSecond = function(seq){
console.log('Second');
seq.addSteps([doSecondAdded,doThirdAdded]);
seq.insertSteps([doSecondInserted,doThirdInserted]);
seq.next();
};

Expand All @@ -456,18 +456,18 @@ var doThird = function(seq){
seq.next();
};

var doFirstAdded = function(seq){
console.log('Added #1');
var doFirstInserted = function(seq){
console.log('Inserted #1');
seq.next();
};

var doSecondAdded = function(seq){
console.log('Added #2');
var doSecondInserted = function(seq){
console.log('Inserted #2');
seq.next();
};

var doThirdAdded = function(seq){
console.log('Added #3');
var doThirdInserted = function(seq){
console.log('Inserted #3');
seq.next();
};

Expand Down

0 comments on commit e43868a

Please sign in to comment.