jQuery – dialog(“open”) – cannot call methods on dialog prior to initialization

 
//$(“#my-dialog”).dialog(“open”);
$(“#my-dialog”).dialog({
   open:function () {
      $(this).dialog(“open”);
   },
});