X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/7a654f8d43fdb43d78b63d90528bed6e86b608cc..refs/heads/master:/docs/api/Ext.Version.html diff --git a/docs/api/Ext.Version.html b/docs/api/Ext.Version.html deleted file mode 100644 index 3bfe28ae..00000000 --- a/docs/api/Ext.Version.html +++ /dev/null @@ -1,170 +0,0 @@ -
A utility class that wrap around a string version number and provide convenient -method to perform comparison. See also: compare. Example:
- -var version = new Ext.Version('1.0.2beta');
-console.log("Version is " + version); // Version is 1.0.2beta
-
-console.log(version.getMajor()); // 1
-console.log(version.getMinor()); // 0
-console.log(version.getPatch()); // 2
-console.log(version.getBuild()); // 0
-console.log(version.getRelease()); // beta
-
-console.log(version.isGreaterThan('1.0.1')); // True
-console.log(version.isGreaterThan('1.0.2alpha')); // True
-console.log(version.isGreaterThan('1.0.2RC')); // False
-console.log(version.isGreaterThan('1.0.2')); // False
-console.log(version.isLessThan('1.0.2')); // True
-
-console.log(version.match(1.0)); // True
-console.log(version.match('1.0.2')); // True
-
-
The version number in the follow standard format: major[.minor[.patch[.build[release]]]] -Examples: 1.0 or 1.2.3beta or 1.2.3.4RC
-this
-Compare 2 specified versions, starting from left to right. If a part contains special version strings, -they are handled in the following order: -'dev' < 'alpha' = 'a' < 'beta' = 'b' < 'RC' = 'rc' < '#' < 'pl' = 'p' < 'anything else'
-The current version to compare to
-The target version to compare to
-Returns -1 if the current version is smaller than the target version, 1 if greater, and 0 if they're equivalent
-Create a closure for deprecated code.
- -// This means Ext.oldMethod is only supported in 4.0.0beta and older.
-// If Ext.getVersion('extjs') returns a version that is later than '4.0.0beta', for example '4.0.0RC',
-// the closure will not be invoked
-Ext.deprecate('extjs', '4.0.0beta', function() {
- Ext.oldMethod = Ext.newMethod;
-
- ...
-});
-
-The package name
-The last version before it's deprecated
-The callback function to be executed with the specified version is less than the current version
-The execution scope (this) if the closure
-Returns whether this version equals to the supplied argument
-Returns whether this version equals to the supplied argument
-The version to compare with
-True if this version equals to the target, false otherwise
-Converts a version component to a comparable value
-Converts a version component to a comparable value
-The value to convert
-Returns shortVersion version without dots and release
-Returns shortVersion version without dots and release
-Get the version number of the supplied package name; will return the last registered version -(last Ext.setVersion call) if there's no package name given.
-(Optional) The package name, for example: 'core', 'touch', 'extjs'
-The version
-Returns whether this version if greater than the supplied argument
-Returns whether this version if greater than the supplied argument
-The version to compare with
-True if this version if greater than the target, false otherwise
-Returns whether this version if smaller than the supplied argument
-Returns whether this version if smaller than the supplied argument
-The version to compare with
-True if this version if smaller than the target, false otherwise
-Returns whether this version matches the supplied argument. Example:
- -var version = new Ext.Version('1.0.2beta');
-console.log(version.match(1)); // True
-console.log(version.match(1.0)); // True
-console.log(version.match('1.0.2')); // True
-console.log(version.match('1.0.2RC')); // False
-
-
-The version to compare with
-True if this version matches the target, false otherwise
-Set version number for the given package name.
-Set version number for the given package name.
-The package name, for example: 'core', 'touch', 'extjs'
-The version, for example: '1.2.3alpha', '2.4.0-dev'
-