首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > JavaScript >

extjs3报错:this.keyNav is null 运用在window里使用RowEditor 有datepicker时的一个bug

2012-12-20 
extjs3报错:this.keyNav is null 使用在window里使用RowEditor 有datepicker时的一个bugBug with RowEdito

extjs3报错:this.keyNav is null 使用在window里使用RowEditor 有datepicker时的一个bug

Bug with RowEditor and destroying DatePickers with fix

?

使用extjs3.0 里rowEditor.js???? 在window里 报错:this.keyNav is null

?

查找原因找到

http://www.sencha.com/forum/showthread.php?79605-FIXED-2.2-DatePicker.beforeDestroy-NULL-Exception

bug修复:

http://www.sencha.com/forum/showthread.php?75294-FIXED-3.0.0-Bug-with-RowEditor-and-destroying-DatePickers-with-fix

?

rowEditor.js 源代码:
grid.on({
scope: this,
keydown: this.onGridKey,
columnresize: this.verifyLayout,
columnmove: this.refreshFields,
reconfigure: this.refreshFields,
beforedestroy : this.beforedestroy,
destroy : this.destroy,
bodyscroll: {
buffer: 250,
fn: this.positionButtons
}
});

修正:
var scope = this;

grid.on({
scope: this,
keydown: this.onGridKey,
columnresize: this.verifyLayout,
columnmove: this.refreshFields,
reconfigure: this.refreshFields,
destroy : function () { scope.removeAll(false); scope.destroy(); },
bodyscroll: {
buffer: 250,
fn: this.positionButtons
}
});?

热点排行
Bad Request.