Created
February 15, 2011 22:56
-
-
Save cpojer/828455 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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