Skip to content

Instantly share code, notes, and snippets.

@tmzt
Created March 27, 2011 09:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tmzt/889096 to your computer and use it in GitHub Desktop.
Save tmzt/889096 to your computer and use it in GitHub Desktop.
Seq()
.seq(function() {
QRCode.toDataURL(clans['mutagens'].code, function(error, datauri) {
console.log(datauri);
clans['mutagens'].qrdatauri = (!error) ? datauri : '';
this();
});
})
.seq(function() {
QRCode.toDataURL(clans['normals'].code, function(error, datauri) {
clans['normals'].qrdatauri = (!error) ? datauri : '';
this();
});
})
.seq(function() {
QRCode.toDataURL(clans['underlings'].code, function(error, datauri) {
clans['underlings'].qrdatauri = (!error) ? datauri : '';
this();
});
})
.seq(function() { cb(clans); });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment