Agile Development. more fun less stress.

Sencha Touch (ExtJS) – Problems with Ext.TabPanel when using ‘cardswitch’ event

Posted: June 20th, 2011 | Author: vid | Filed under: Development | Tags: , , , , , | No Comments »

Currently I’m writing a mobile application based on Sencha Touch 1.1.0.
When I was using the ‘cardswitch’ event of the TabPanel class I noticed that the API docs show a wrong number of arguments:

Description in API docs:

cardswitch : ( Ext.Container this, Ext.Component newCard, Ext.Component oldCard, Number index, Boolean animated )

This is how it is implemented:

cardswitch : ( Ext.Component newCard, Ext.Component oldCard, Number index, Boolean animated )

Maybe this is helpful to some developers out there.