class type t =object
..end
method equals : 'a. 'a Js.t -> bool Js.t Js.meth
Returns whether this version equals to the supplied argument
Parameters:
_ Js.t
The version to compare with
Returns:
bool Js.t
True if this version equals to the target, false otherwise
method getBuild : Js.number Js.t Js.meth
Returns the build component value
Returns:
Js.number Js.t
build
method getMajor : Js.number Js.t Js.meth
Returns the major component value
Returns:
Js.number Js.t
major
method getMinor : Js.number Js.t Js.meth
Returns the minor component value
Returns:
Js.number Js.t
minor
method getPatch : Js.number Js.t Js.meth
Returns the patch component value
Returns:
Js.number Js.t
patch
method getRelease : Js.number Js.t Js.meth
Returns the release component value
Returns:
Js.number Js.t
release
method getShortVersion : Js.js_string Js.t Js.meth
Returns shortVersion version without dots and release
method gt : 'b. 'b Js.t -> bool Js.t Js.meth
method gtEq : 'c. 'c Js.t -> bool Js.t Js.meth
method isGreaterThan : 'd. 'd Js.t -> bool Js.t Js.meth
Returns whether this version if greater than the supplied argument
Parameters:
_ Js.t
The version to compare with
Returns:
bool Js.t
True if this version if greater than the target, false otherwise
method isGreaterThanOrEqual : 'e. 'e Js.t -> bool Js.t Js.meth
Returns whether this version if greater than or equal to the supplied argument
Parameters:
_ Js.t
The version to compare with
Returns:
bool Js.t
True if this version if greater than or equal to the target, false otherwise
method isLessThan : 'f. 'f Js.t -> bool Js.t Js.meth
Returns whether this version if smaller than the supplied argument
Parameters:
_ Js.t
The version to compare with
Returns:
bool Js.t
True if this version if smaller than the target, false otherwise
method isLessThanOrEqual : 'g. 'g Js.t -> bool Js.t Js.meth
Returns whether this version if less than or equal to the supplied argument
Parameters:
_ Js.t
The version to compare with
Returns:
bool Js.t
True if this version if less than or equal to the target, false otherwise
method lt : 'h. 'h Js.t -> bool Js.t Js.meth
method ltEq : 'i. 'i Js.t -> bool Js.t Js.meth
method _match : 'j. 'j Js.t -> bool Js.t Js.meth
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
Parameters:
_ Js.t
The version to compare with
Returns:
bool Js.t
True if this version matches the target, false otherwise
method toArray : Js.number Js.t Js.js_array Js.t Js.meth
Returns this format: [major, minor, patch, build, release]. Useful for comparison