Please see http://drupal.org/node/224333#no-jsenabled
Summary: this has been removed from Drupal 7 because it is redundant
On Thu, 2010-11-25 at 17:50 +0200, Fred Jones wrote:
> Are such examples simply wrong?

Well, perhaps unnecessarily cautious. :)

> I've been doing this, under the belief that my logic will only be called if
> javascript is available and only after the DOM is loaded:

I think you are right.

My 2 cents.

F