Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Or you can just do this:

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


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: