extjsie7:';事件为null或不是对象';当我关上窗户时

extjsie7:';事件为null或不是对象';当我关上窗户时,extjs,internet-explorer-7,Extjs,Internet Explorer 7,我正在使用网格组件,当用户双击记录-打开窗口时,我的代码如下: var gridPanel = Ext.create('AB.ins.Grid', { title:'Grid Panel', allowBlank: true, style: { cursor: 'default' }, store: insuranceStore, columns: [ {header:'№', dataIndex: 'id',width:

我正在使用网格组件,当用户双击记录-打开窗口时,我的代码如下:

var gridPanel = Ext.create('AB.ins.Grid', {
    title:'Grid Panel',
    allowBlank: true,
    style: {
      cursor: 'default'
    },
    store: insuranceStore,
    columns: [
      {header:'№', dataIndex: 'id',width: 45, align: 'right'},
      {header:'Name', dataIndex: 'fio', width: 250},
    ],
    dockedItems: [{
      xtype: 'pagingtoolbar',
      store: insuranceStore,
      itemId: 'pagingbar',
      dock: 'bottom',
      displayInfo: true
    }],
    listeners: {
      itemdblclick: function(obj,record,item,index,event,options) {      
        var testshow = Ext.create('Ext.Window', {
          width: 500,
          height: 600,
          modal: true,
          title: 'Test window'
        });
        testshow.show();
      }
    }
});

在FF中,此代码工作正常。在IE7中,这段代码可以工作,但当我在第三次或第四次关闭窗口时,IE显示错误“事件为null或不是对象”。发生了什么?

IE不喜欢尾随逗号,它通常会导致奇怪的错误消息。在后来的IE版本中,这似乎不是什么大问题

将列定义更改为此

columns: [
  {header:'№', dataIndex: 'id',width: 45, align: 'right'},
  {header:'Name', dataIndex: 'fio', width: 250}
],

请注意,第二项上的尾随逗号已被删除

这对我解决问题有很大帮助。非常感谢。