From the jquery docs:
The data- attributes are pulled in the first time the data property is accessed and then are no longer accessed or mutated (all data values are then stored internally in jQuery).
Is there a way to make sure all setting through data() results in an actual update of the dom-element instead ?
Use case: I'm building a framework in which extensions (beyond my control) may use jquery data(). However the framework core itself doesn't use Jquery at all. Still the core needs to be able to get an up-to-date view of set data-attributes (by dom-inspection)
How to accomplish this?
Of course I could overwrite jquery data() if really needed, but I prefer something less hacky.
Thanks