module.exports = SimpleQueue;

function SimpleQueue() {
  var self = this;
  
  self.fifo = [];
  self.executing = false;
}

SimpleQueue.prototype.push = function (fn) {
  var self = this;
  
  self.fifo.push(fn);
  
  self.maybeNext();
};

SimpleQueue.prototype.maybeNext = function () {
  var self = this;
  
  if (!self.executing && self.fifo.length) {
    var fn = self.fifo.shift();
    
    self.executing = true;
    
    fn(function () {
      self.executing = false;
      
      self.maybeNext();
    });
  }
};
@@ -329,12 +329,108 @@
 ting
- && 
+) %7B%0A    self.next();%0A  %7D%0A%7D;%0A%0ASimpleQueue.prototype.next = function () %7B%0A  var self = this;%0A  %0A  if (
 self

Add next() function to SimpleQueue