2011-06-30 2 views
5

のjQuery UIのダイアログコード以下

$("#dialog-confirm").dialog({ 
     resizable: false, 
     height:140, 
     modal: true, 
     buttons: { 
      "Delete all items": function() { 
       $(this).dialog("close"); 
      }, 
      Cancel: function() { 
       $(this).dialog("close"); 
      } 
     }, 
        close:function(){ 
         $(this).dialog("close"); 
       } 
    }); 

jqueryのUIダイアログにあまりにも多くの再帰エラーを与えすぎ再帰の問題は、どのようにこの問題を解決するには?

答えて

9

ここでは無限再帰が発生しています。 だけ

close:function(){ 

      } 

close:function(){ 
        $(this).dialog("close"); 
      } 

を変更

1

おそらく無限の再帰があるからです。

close:function(){ 
    $(this).dialog("close"); 
} 
関連する問題