Code: Select all
/**
* @class MyCabinetLayout
* @extends Ext.Panel
*/
MyCabinetLayout = Ext.extend(Ext.Panel, {
/**
* Main panel
* @type {Ext.Panel}
*/
contentPanel : null,
onPageChanged : function(link, title) {
this.contentPanel.layout.setActiveItem(link);
^^^^^^^^ can't see declaration and description
},
.....
});
Code: Select all
/**
* @class MyCabinetLayout
* @extends Ext.Panel
*/
MyCabinetLayout = Ext.extend(Ext.Panel, null, {
^^^ add param
/**
* Main panel
* @type {Ext.Panel}
*/
contentPanel : null,
onPageChanged : function(link, title) {
this.contentPanel.layout.setActiveItem(link);
^^^^^^^^ I CAN see declaration and description !
},
.....
});
P.S. Sorry for my English
