Luis Lobo Borobia

Software Development, Tech, Life

Ext JS experiences: 1

Publicado por luislobo en 31/05/2010

Just if you ever encounter this error on FireBug when developing with Ext JS:

this.addEvents is not a function

Please, check that you are not missing a “new” keyword.

I’ve spent an hour with this section of code, throwing that error:

txtInstrucciones = Ext.form.TextArea({
fieldLabel:'Instrucciones de la tarea',
name:'instrucciones',
allowBlank:false,
readOnly: true,
style: 'margin-top: 5px;',
width:500,
height:80
});

So, the error was a missing new keyword:


txtInstrucciones = new Ext.form.TextArea({
fieldLabel:'Instrucciones de la tarea',
name:'instrucciones',
allowBlank:false,
readOnly: true,
style: 'margin-top: 5px;',
width:500,

height:80
});

Advertisement

Deja un comentario

Fill in your details below or click an icon to log in:

Gravatar
Logo de WordPress.com

You are commenting using your WordPress.com account. Log Out / Cambiar )

Twitter picture

You are commenting using your Twitter account. Log Out / Cambiar )

Facebook photo

You are commenting using your Facebook account. Log Out / Cambiar )

Connecting to %s

 
Seguir

Get every new post delivered to your Inbox.