Dialog data different depending on jQuery version
My code looks like this:
- $(".ui-dialog-content:visible").each(function () {
- var dialog = $(this).data('xxxx'),
I am finding that sometimes (jQuery UI 1.9.2 - jQuery 1.8.2) I need to use the following code to get the dialog:
- $(this).data('dialog')
sometimes (jQuery UI 1.10.2 - jQuery 1.9.1) I need:
and sometimes (jQuery UI 1.10.2 - jQuery 2.0.0) I need:
- $(this).data('ui-dialog')
Not sure if this is caused by jQuery or by jQuery UI, but while not part of the public API it would be great if this value wouldn't be randomly changing between releases.