News for hackers. Stuff that matters.
Re:Fixing the callback spaghetti in node.js by jrockway on Thursday September 29, 2011 @07:00AM (#3051952)
Or you can just do this:

   foo.step1 = function(){ do_some_thing(foo.step2) }
   foo.step2 = function(arg){ do_another_thing( ... ) }
   foo.step1()
   # enjoy

There are no comments on this comment yet.