Hey Team, I'm playing around with different JS design patterns, and im trying to modify some samples I've seen out there. I saw an example of a xhr factory, that had several nested try/catch statements that were nested within eachother.
try{
...
}catch(e){
try{
...
}catch(e){}
}
I figured I'd be able to do a self-invoking function. However It seems to have eluded me as to how it should work. Does anyone have any advice?
Example:
http://jsfiddle.net/jiggliemon/a7xWq/2/
[Update]:
http://jsfiddle.net/jiggliemon/b5LaZ/embedded/
Case Closed.