2011-12-05 30 views
0

我得到這個錯誤在Firebug錯誤的ExtJS的的TabPanel

instantiate()ext-debug.js (line 6634) 
alias()ext-debug.js (line 2448) 
app.js()app.js (line 9) 
c is not a constructor 
this.instantiators[length] = new Function('c', 'a', 'return new c('+args.join(',')+')'); 

凡痕跡,我app.js第9行文件,在那裏我創建一個tabpanel

var tabPanel = Ext.create('Ext.tab.Panel', { 
    region: 'center', 
    id: 'centerPanel', 
     items: [{ 
      title: 'Center Panel', 
      autoScroll: true, 
     }] 
}); 

我已經刪除了所有代碼從面板內,但我仍然得到錯誤。任何幫助將不勝感激。

Nicos

+1

從這裏看起來很好..你能告訴我們更多的代碼嗎? – scebotari66

回答

0

這是正常的,你有一個未使用的項目逗號?

var tabPanel = Ext.create('Ext.tab.Panel', { 
    region: 'center', 
    id: 'centerPanel', 
     items: [{ 
      title: 'Center Panel', 
      autoScroll: true , <<<====== here the comma is unused 
     }] 
}); 
+0

它是從面板內部移除所有物品的'剩餘物'。我刪除它,但它仍然沒有工作。同樣的錯誤 – Nicos