Skip to content

Instantly share code, notes, and snippets.

@GCheung55
Forked from cpojer/Queue.js
Created February 15, 2011 23:16
Show Gist options
  • Save GCheung55/828491 to your computer and use it in GitHub Desktop.
Save GCheung55/828491 to your computer and use it in GitHub Desktop.
cpojer's Queue (Chain)
(function(){
this.Queue = new Class({
Extends: Chain,
call: function(){
if (this.busy) return this;
this.busy = true;
this.callChain();
return this;
},
complete: function(){
this.busy = false;
this.call();
return this;
}
});
}).call(this);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment