title: jQuery's data() attribute does not update when element data changes
body: <p>I wanna use jQuery's <code>data()</code> api to retrieve all the data attribute of an element. But the cache nature of this api is really annoying. Sometimes I need to change some data atribute of an element in javascript but the <code>data()</code> api always return the initial value of each data attribute. So I have to use the <code>attr()</code> to access each data attribute of an element to get its up-to-date value. Is there any way to overcome this cache thing and make <code>data()</code> always return the latest value every time I call it?</p>