Page 1 of 1

ExtJS - probjem with Ext.extend

Posted: Fri Dec 12, 2008 9:40 am
by exception.cpp
Hi ! We are try to use SPKET IDE with ExtJS framework. All cool, but some problem with Ext.extend method:

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
			},
			.....
});
when I typing [this.contentPanel] in method - I can see only yellow highlighting (by name), but can't see desctiption (from JSDoc) and can't go to declaration. Howerer if I use Ext.extend method with THREE params - all work fine ! Simple add [null,] into code above we got:

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 !
			},
			.....
});
but with [,null] param all code not work. Possible change anything in SPKET config to fix this situation ?

P.S. Sorry for my English :(

Posted: Fri Dec 12, 2008 1:31 pm
by eric_suen
Thanks for report this issue, try download http://www.agpad.com/downloads/com.spket.js_1.6.16.jar and replace the old one in your computer.

Posted: Fri Dec 12, 2008 5:08 pm
by exception.cpp
Thanks for very fast reply ! New file solve problem :) Thanks again.