Internet explorer 8 IE8无效参数

Internet explorer 8 IE8无效参数,internet-explorer-8,extjs4,Internet Explorer 8,Extjs4,我正在处理一些现有的代码。升级到ExtJS4后,我们的一个应用程序视图窗口被破坏。它在Firefox上运行良好,而不是IE8。当弹出窗口打开时,我得到了无效的参数,调试器指示它处于打开状态,比如Sytle[hook.name]=value 在阅读了一些帖子后,我试图删除高度(这是我真正需要的),但它仍然不起作用。请告知 谢谢 Ext.define(view.window.popupwindow', { extend : 'Ext.Window', alias : 'widget.

我正在处理一些现有的代码。升级到ExtJS4后,我们的一个应用程序视图窗口被破坏。它在Firefox上运行良好,而不是IE8。当弹出窗口打开时,我得到了无效的参数,调试器指示它处于打开状态,比如Sytle[hook.name]=value

在阅读了一些帖子后,我试图删除高度(这是我真正需要的),但它仍然不起作用。请告知

谢谢

Ext.define(view.window.popupwindow', {
    extend : 'Ext.Window',
    alias : 'widget.popupwindow',
    requires: [view.grid.issuerpopupgrid'],

    appContainer: undefined,
    caller: undefined,
    selReportType:undefined,
    reloadData: true,
    extraParam: undefined,

    initComponent: function() {
        var config = {              
            width: 750,
            minWidth: 600,
            minHeight: 300,
            autoScroll: false,
            modal: true,
            border: false,
            closable: true,
            constrain: false,
            resizable: true,
            maximizable: true,
            layout:'anchor',
            items: this.buildWindow(),
            listeners: {
                scope: this,
                show: function(form) {
                    //sync the shadow
                    var win = Ext.WindowMgr.getActive();
                    if (win!=null) win.el.sync(true);
                }
            }
        };
        Ext.apply(this, config);
        this.callParent(arguments);
    },

    buildWindow: function() {
        return [{
            xtype: 'issuerpopupgrid',
            id:'issuerpopupgrid-id',
            appContainer: this.appContainer,
            extraParam: this.extraParam
        }];
    },

}); 

Ext.define('view.grid.issuerpopupgrid', {
    extend : 'view.grid.lvsimplegrid',
    alias : 'widget.issuerpopupgrid',
    appContainer: undefined,
    extraParam: undefined,

    initComponent: function() {
        this.gridType =  this.appContainer.appContext.appData.gridDefTypeMap.R9;
        this.modelName = this.appContainer.name+'.model.'+this.gridType.name;
        this.selReportType = this.gridType.name; //'R9';
        this.sortField = 'secDesc';
        this.reportUrl = this.appContainer.appContext.appData["gridDefinitions"][this.gridType.name].serviceUrl;
        var config = {
            height: 570,
            selModel: {
                selType: 'checkboxmodel',
                showHeaderCheckbox :true,
                mode: 'MULTI',
                checkOnly: true
            },
            listeners: {
                scope: this,
                afterrender: this.onAfterRender,
                show: this.onActivateGrid
            }
        };
        Ext.apply(this, config);
        this.callParent(arguments);
        this.tbar = this.buildTopBar();
    },

    onAfterRender: function(thisObj) {
        this.configureGrid(this.selReportType, this.appContainer.appContext.appData, null, false, this.sortField, this.sortField);
        thisObj.getStoreData(this.selReportType, this.extraParam);
    },

    onActivateGrid: function(thisObj) {
        thisObj.getStoreData(this.selReportType); 
    }
});

看起来后面有个逗号:

buildWindow: function() {
    return [{
        xtype: 'issuerpopupgrid',
        id:'issuerpopupgrid-id',
        appContainer: this.appContainer,
        extraParam: this.extraParam
    }];
}, //<-- trailing comma
Ext.application({
    name : 'Fiddle',

    launch : function () {
        Ext.define('view.window.popupwindow', {
            extend : 'Ext.Window',
            alias : 'widget.popupwindow',
            requires: ['view.grid.issuerpopupgrid'],
            appContainer: undefined,
            caller: undefined,
            selReportType: undefined,
            reloadData: true,
            extraParam: undefined,
            initComponent: function () {
                var config = {
                    width: 750,
                    minWidth: 600,
                    minHeight: 300,
                    autoScroll: false,
                    modal: true,
                    border: false,
                    closable: true,
                    constrain: false,
                    resizable: true,
                    maximizable: true,
                    layout: 'anchor',
                    items: this.buildWindow(),
                    listeners: {
                        scope: this,
                        show: function () {
                            //sync the shadow
                            var win = Ext.WindowMgr.getActive();
                            if (win !== null) {
                                win.el.sync(true);
                            }
                        }
                    }
                };
                Ext.apply(this, config);
                this.callParent(arguments);
            },
            buildWindow: function () {
                return [{
                    xtype: 'issuerpopupgrid',
                    id: 'issuerpopupgrid-id',
                    appContainer: this.appContainer,
                    extraParam: this.extraParam
                }];
            }
        });

        Ext.define('view.grid.issuerpopupgrid', {
            extend : 'view.grid.lvsimplegrid',
            alias : 'widget.issuerpopupgrid',
            appContainer: undefined,
            extraParam: undefined,
            initComponent: function () {
                this.gridType =  this.appContainer.appContext.appData.gridDefTypeMap.R9;
                this.modelName = this.appContainer.name + '.model.' + this.gridType.name;
                this.selReportType = this.gridType.name; //'R9';
                this.sortField = 'secDesc';
                this.reportUrl = this.appContainer.appContext.appData.gridDefinitions[this.gridType.name].serviceUrl;
                var config = {
                    height: 570,
                    selModel: {
                        selType: 'checkboxmodel',
                        showHeaderCheckbox : true,
                        mode: 'MULTI',
                        checkOnly: true
                    },
                    listeners: {
                        scope: this,
                        afterrender: this.onAfterRender,
                        show: this.onActivateGrid
                    }
                };
                Ext.apply(this, config);
                this.callParent(arguments);
                this.tbar = this.buildTopBar();
            },

            onAfterRender: function (thisObj) {
                this.configureGrid(this.selReportType, this.appContainer.appContext.appData, null, false, this.sortField, this.sortField);
                thisObj.getStoreData(this.selReportType, this.extraParam);
            },

            onActivateGrid: function (thisObj) {
                thisObj.getStoreData(this.selReportType);
            }
        });
    }
});