Skip to content

Instantly share code, notes, and snippets.

@unamashana
Created April 29, 2010 08:03
Show Gist options
  • Save unamashana/383291 to your computer and use it in GitHub Desktop.
Save unamashana/383291 to your computer and use it in GitHub Desktop.
Muziboo.Queue = {
process: function(){
_muzq.each(function(e){
Muziboo.Queue.execute(e);
});
// Queue is no longer needed as the stack is ready
_muzq = {
push: function(e){
Muziboo.Queue.execute(e);
}
}
},
execute: function(e){
var fun = eval(e.splice(0,1)[0]);
fun.apply(this,e);
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment