mardi 13 mai 2014

TypeError: items is undefined when click image

I'm trying to fire a click event from an image as in the following code, but when the image is clicked, I get an error in Firebug: TypeError: items is undefined

Code:



{
xtype: 'image',
listeners: {
render: function(c) {
c.getEl().on('click', function(){ this.fireEvent('click', c); }, c);
}
},
height: 80,
itemId: 'navDashboard',
width: 85,
src: './images/atlas/usx2/nav_dashboard_85x80.png'
}




Aucun commentaire:

Enregistrer un commentaire