I just googled how to check if an div is initialized as a dialog.
$(this).is(':data(dialog)');
I don't fully understand above code.
Is this means that every initialized dialog has a variable "dialog" and it is set as true ?
Is data() as selector here is the same as in $.data() function ?
Any article should I read ?