Hacker News new | ask | show | jobs
by jrockway 5381 days ago
Or you can just do this:

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