View Full Version : Error while setting active tab

17 Nov 2010, 3:36 AM
Hi all

I have this code :

SM.CustomerRecordsTabPanel = Ext.extend(Ext.TabPanel, {
constructor: function(config){
var tabExists = SM.mainPanel.find('title','Rekordy '+config.record.data.name)
if(tabExists.length == 0)

title : 'Rekordy '+config.record.data.name,
closable: true

SM.mainPanel.setActiveTab(SM.mainPanel.find('title','Rekordy '+config.record.data.name));

So when the tab in SM.mainPanel exists than it opens new tab with specified title, if this tab exists than it's activating existing tab. But in else statement I got this error in firebug:

me.events is undefined
chrome://firebug/content/blank.gif ce = me.events[ename],

Any ideas how to get rid of this error ?