PDA

View Full Version : [Newbie] Error while upg. from Ext JS 2 in Ext.form.DateField.prototype.menuListeners



Kimbal
3 May 2011, 7:27 AM
Hi, I was entrusted to upkeep and integrate an app partially written in
Ext JS 2 and partialy in Ext JS 3.3.1

When I upgraded the ExtJS 2 part to use the ExtJS3.3 libraries this piece of code


Ext.form.DateField.prototype.menuListeners.hide = function(){
this.addEvents('click');
this.fireEvent('click');

game me the following error

Ext.form.DateField.prototype.menuListeners is undefined
chrome://firebug/content/blank.gifExt.form.DateField.prototype.menuListeners.hide = function(){


what would be the equivalent in ExtJS 3.3.1?
Thanks in advance, and if you need more code or something just ask