我在 firefox 60.0.2 上dialog.show()
的自定义dialog
. 调试后,我发现异常是在ext-modern-all-debug.js 的第 85351 行产生的:属性在哪里,它在里面不可用。 value = computedStyle.getPropertyValue(name);
name
opacity
computedStyle
[Exception... "Component is not available" nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)" location: "JS frame :: debugger eval code :: <TOP_LEVEL> :: line 1" data: no]
对话框显示代码:
var thisObj = this;
var wnd = Ext.create('myApp.view.desktop.something.CustomWindow',{
onButtonSubmitClick: function(){
thisObj.doSomething();
this.close();
}
});
wnd.show();
ExtJS 调试功能:
getCssStyleValue: function(name, value) {
var testElement = this.getTestElement(),
computedStyle = this.testElementComputedStyle,
style = testElement.style;
style.setProperty(name, value);
if (Ext.browser.is.Firefox) {
testElement.offsetHeight;
}
value = computedStyle.getPropertyValue(name);
style.removeProperty(name);
return value;
}
这个错误与这个Mozilla错误有关吗?
任何解决方法?