I too prefer returning a variable and false is fine by me. It'll just
have to be documented so some programmer out there that returns false
for some reason or another doesn't get really confused.
An example would be a continue style situation:
$("p").each(function() {
// skip this iteration but keep going through the set
if ($(this).is(".skip")) return false;
$(this).remove();
});
Someone innocently returning false, maybe to remind himself that it's
not the expected outcome, would get quite flummoxed if this isn't
documented.
-blair
John Resig wrote:
> I really prefer doing a 'return false' instead of throwing exceptions.
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/