One time or another, everyone will need to ask this question: How I find the ExtJs/Sencha version used in an application?

In ExtJS, Ext.version defines the version used, however, in ExtJS 4.x, Ext.version has been replaced by Ext.getVersion(). But we don’t assume that Ext.version=3.x and Ext.getVersion()=4.x, so the below code detects the version of Sencha used:

if (Ext.version != undefined) {
} else {

For example:

Best regards,