`

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
}
});
 
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics