PDA

View Full Version : TypeError: items is undefined when click image



xjscrafter
13 May 2014, 7:21 PM
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


{
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'
}

evant
13 May 2014, 7:46 PM
It's not possible to say out of context. Provide a runnable test case. I doubt the error is being caused from the part you posted.