XML Feeds

.

[javascript-dev] Re: Re: distinguishing between inlets

Matt Lyon matt at postsomnia.com
Thu May 22 14:40:23 MDT 2008


personally i'm fond of case statements, there's less temptation to mix in other logic with an "if" that picks your inlet:

function list() {
  switch(inlet) {
  case 0:
    // do stuff;
    break;
  case 1:
    // do stuff;
    break;
  }
}



More information about the javascript-dev mailing list