Yeah, if this is contained within a plugin, then binding to a DOM element is ok. Just make sure that you clean up after yourself, otherwise there could be memory leaks.
--John On 2/9/07, Jonathan Sharp <[EMAIL PROTECTED]> wrote: > 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 > [email protected] > http://jquery.com/discuss/ > > _______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
