Mon. May 17, 7:16:10 PM
A few more noteworthy points:
1. as of 1.4, event handlers are stored inside the elem's data("events") object. therefore, you see everything bound to an element by referencing the events data key.
2. html5 spec supports data-* attributes, which answers your point about storing info in random attributes. might make more sense to go this route and use $(elem).attr("data-currency") instead, depending on the situation.
3. using $(elem).data() requires that the DOM be queried before saving data into the cache. If you're just working with ONE element, this performance hit can be avoided by using $.data(elem, key, value);