【发布时间】:2011-03-12 21:53:20
【问题描述】:
我有一个扩展 dijit.Dialog 的类,但只是为我的站点设置默认功能和按钮。单击对话框的取消按钮时,将运行以下代码:
this.actionDialog.destroyRecursive();
this.actionDialog.destroy();
nbthis.actionDialog = dijit.Dialog
有时(并非总是)会引发以下错误:
Uncaught TypeError: Cannot call method 'destroy' of undefined
DialogUnderlay.xd.js:8
这会导致以下对话框无法正确显示。我正在使用来自 Google API 的 1.5。我是否缺少底层代码的某些内容?
Ken 回答后抛出的错误:
exception in animation handler for: onEnd
TypeError: Cannot read property 'style' of null
都来自dojo.xd.js:14。但是代码仍然可以正常工作。
【问题讨论】:
标签: javascript dojo dialog