http://docs.sencha.com/ext-js/4-1/so...thod-deprecate

The documentation and example say that the argument "4.0.0beta" would perform the code even when the current version is "4.0.0beta". But actually, the code checks if the version comparsion is smaller than 1. This means, that the code will not performed if the current version is 4.0.0beta

So, the documentation should say: Specify the version in which the function won't be called.

Maybe, this is issued by the build number (Ext.Version.compare(Ext.getVersion('extjs'), '4.1.2.1') == 0. Should this be correct?

My replay:

Ext.getVersion('extjs')

Ext.Version.Ext.extend.constructor
  • build: 1
  • major: 4
  • minor: 1
  • patch: 2
  • shortVersion: "4121"
  • version: "4.1.2.1"
  • __proto__: F


Ext.Version.compare(Ext.getVersion('extjs'), '4.1.0')
1
Ext.Version.compare(Ext.getVersion('extjs'), '4.1.1')
1
Ext.Version.compare(Ext.getVersion('extjs'), '4.1.2')
1
Ext.Version.compare(Ext.getVersion('extjs'), '4.1.3')
-1