Skip to content

Commit

Permalink
Merge pull request #35 from pacovell/master
Browse files Browse the repository at this point in the history
Small fix to prevent _end() from crashing
  • Loading branch information
rauchg committed Dec 5, 2011
2 parents 458f0dd + 81a684f commit 1c05faa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/soda/client.js
Expand Up @@ -190,7 +190,7 @@ Client.prototype.__defineGetter__('chain', function(){
*/

Client.prototype.end = function(fn){
this._done = function(){this.queue = null; return fn.apply(this, arguments)};
this._done = function(){this.queue = []; return fn.apply(this, arguments)};
this.queue.shift()();
};

Expand Down

0 comments on commit 1c05faa

Please sign in to comment.