ExtJS - probjem with Ext.extend

Bug Reports and Fixes
Post Reply
exception.cpp
Posts: 2
Joined: Fri Dec 12, 2008 9:31 am

ExtJS - probjem with Ext.extend

Post by exception.cpp » Fri Dec 12, 2008 9:40 am

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 :(

eric_suen
Site Admin
Posts: 678
Joined: Wed Sep 28, 2005 7:00 am
Contact:

Post by eric_suen » Fri Dec 12, 2008 1:31 pm

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.

exception.cpp
Posts: 2
Joined: Fri Dec 12, 2008 9:31 am

Post by exception.cpp » Fri Dec 12, 2008 5:08 pm

Thanks for very fast reply ! New file solve problem :) Thanks again.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests