On 5/31/06, Aaron Boodman <[EMAIL PROTECTED]> wrote:
Why do you think it's better to store something in the DOM rather than
in pure JS?

I myself like your variant (esp if the buttons are not created by
you). But someone not knowing how closures work is much more likely to
get into trouble using it. So either they should learn it or they
should use the simpler variant using DOM attributes.

The performance difference is negligible for a "click" handler.

Nickolay
_______________________________________________
Project_owners mailing list
[email protected]
http://mozdev.org/mailman/listinfo/project_owners

Reply via email to