0

所以我有一个带有顶部和底部工具栏的面板,它是在 dockedItems 配置中创建的:

dockedItems: [
    Ext.create('AM.view.TopToolbar',{}), //  //This line alone breaks the app
    { //Toolbars
        xtype: 'toolbar',
        dock: 'bottom',
        items: [
            { text: 'About', itemId: 'about' },
            '-',
            { text: 'Legal', itemId: 'legal' },
            ...

该代码在 FF 中运行良好,但在 IE9 中中断。我认为这与我的 create 语句的语法有关,但我在论坛上找不到解决方案。

这是我的 TopToolbar 类:

Ext.define('AM.view.TopToolbar', {
    extend: 'Ext.toolbar.Toolbar',
    alias: 'widget.toptoolbar',
    defaults: { arrowCls: '' }, //Removing black arrow from toolbar items
    items: [
        { text : 'Tools', 
            menu : {
                items: [
                //rest of my toolbar items and menus

所有文件结构均正确且有效。

命名空间是'AM'

Internet Explorer 中的应用程序中断 - 尚未在 Chrome 或 Safari 中尝试过

我得到这个错误

: SCRIPT16389: Unspecified error. 
ext-all.js, line 38 character 51878

有任何想法吗?

干杯!

4

0 回答 0