[Project_owners] [JS] addEventListener function parameter
asqueella at gmail.com
Wed May 31 02:23:08 EDT 2006
On 5/31/06, Aaron Boodman <zboogs at gmail.com> 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.
More information about the Project_owners