What are people's thoughts about storing "state" by using ELEMENT.$flag as
opposed to a CSS class such as "my_class_flag"?

I always lean towards being a "DOM purest" but I think performance wise
adding a boolean attribute to a DOM element is less expensive/cleaner than
adding/remove/testing for a CSS class. (This attribute is only utilized from
within the plugin I'm writing)

-js
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to