var data = $('.t-grid-header-wrap tr').data();
Will these kind of references to .data work in jquery1.9, I have a few of them in telerik js files, was unclear whether its removed or only .data("events") has been removed?
var data = $('.t-grid-header-wrap tr').data();
Will these kind of references to .data work in jquery1.9, I have a few of them in telerik js files, was unclear whether its removed or only .data("events") has been removed?
Yes it will work in 1.9, only some interal structures like events
are removed from .data()
so that they are not accidentely manipulated.
You can still use jQuery._data()
$._data(domElement, 'events')
Demo: Fiddle
As you can read in the jquery documentation:
Prior to jQuery 1.4.3 (starting in jQuery 1.4) the .data() method completely replaced all data, instead of just extending the data object. If you are using third-party plugins it may not be advisable to completely replace the element's data object, since plugins may have also set data.