run-until-success hooks return result of successful function
commitf91ec5bfe242f6eb14709c1ed45295c0ca771e7c
authorJohn Foerch <jjfoerch@earthlink.net>
Wed, 6 Oct 2010 01:01:36 +0000 (5 21:01 -0400)
committerJohn Foerch <jjfoerch@earthlink.net>
Wed, 6 Oct 2010 01:01:36 +0000 (5 21:01 -0400)
treebf78eb0157b0cceec28a943599f1251dd1db4f07
parent221d775e9a400759dfff92958567a25cac55ca80
run-until-success hooks return result of successful function

These hooks used to always return true, but they are made more useful by
having them return the value of the successful function.  This allows the
functions in such a hook to be semi-predicates.
modules/hook.js
tests/simple/hook.js