Skip to content

Instantly share code, notes, and snippets.

@cpojer
Created February 15, 2011 22:56
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save cpojer/828455 to your computer and use it in GitHub Desktop.
Save cpojer/828455 to your computer and use it in GitHub Desktop.
(function(){
this.Queue = new Class({
Extends: Chain,
Implements: Class.Binds,
call: function(){
if (this.busy || !this.$chain.length) 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