Skip to content

Instantly share code, notes, and snippets.

@ELLIOTTCABLE
Created February 2, 2010 06:51
Show Gist options
  • Save ELLIOTTCABLE/292450 to your computer and use it in GitHub Desktop.
Save ELLIOTTCABLE/292450 to your computer and use it in GitHub Desktop.
/* global */
var foo = 0;
function () {
switch(foo) {
case 0:
// some code
foo = 1;
return;
case 1:
// some more code
foo = 2;
return;
case 2:
// last bit of code
foo = 0;
return;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment