Skip to content
Browse files

Merge pull request #16 from dimatron/patch-1

Minor performance improvement (thanks to dimatron)
  • Loading branch information...
2 parents da740a6 + 433a908 commit 86919bdd9b190a14451a727a33cd92db29079002 @bminer committed Jun 27, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 index.js
View
2 index.js
@@ -80,7 +80,7 @@ function Queue(dbQuery, resumeMainQueue, options) {
//Run everything in the queue
that.executing = true;
var done = 0, total = that.queue.length;
- for(var i in that.queue)
+ for(var i = 0; i < total; i ++)
{
(function(item) {
//Execute the query

0 comments on commit 86919bd

Please sign in to comment.
Something went wrong with that request. Please try again.