1 Ext.data.JsonP.Ext_Version({
6 "docauthor": "Jacky Nguyen <jacky@sencha.com>",
15 "href": "Version.html#Ext-Version-method-constructor",
22 "type": "String/Number",
24 "doc": "<p>The version number in the follow standard format: major[.minor[.patch[.build[release]]]]\nExamples: 1.0 or 1.2.3beta or 1.2.3.4RC</p>\n",
29 "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/version/Version.js",
31 "owner": "Ext.Version",
33 "html_filename": "Version.html",
35 "type": "Ext.Version",
36 "doc": "<p>this</p>\n"
45 "href": "Version.html#Ext-Version-method-compare",
46 "shortDoc": "Compare 2 specified versions, starting from left to right. ...",
48 "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/version/Version.js",
54 "doc": "<p>The current version to compare to</p>\n",
60 "doc": "<p>The target version to compare to</p>\n",
65 "owner": "Ext.Version",
66 "doc": "<p>Compare 2 specified versions, starting from left to right. If a part contains special version strings,\nthey are handled in the following order:\n'dev' < 'alpha' = 'a' < 'beta' = 'b' < 'RC' = 'rc' < '#' < 'pl' = 'p' < 'anything else'</p>\n",
70 "doc": "<p>Returns -1 if the current version is smaller than the target version, 1 if greater, and 0 if they're equivalent</p>\n"
72 "html_filename": "Version.html"
79 "href": "Version.html#Ext-Version-method-deprecate",
80 "shortDoc": "Create a closure for deprecated code. ...",
82 "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/version/Version.js",
88 "doc": "<p>The package name</p>\n",
94 "doc": "<p>The last version before it's deprecated</p>\n",
100 "doc": "<p>The callback function to be executed with the specified version is less than the current version</p>\n",
106 "doc": "<p>The execution scope (<tt>this</tt>) if the closure</p>\n",
111 "owner": "Ext.Version",
112 "doc": "<p>Create a closure for deprecated code.</p>\n\n<pre><code>// This means Ext.oldMethod is only supported in 4.0.0beta and older.\n// If Ext.getVersion('extjs') returns a version that is later than '4.0.0beta', for example '4.0.0RC',\n// the closure will not be invoked\nExt.deprecate('extjs', '4.0.0beta', function() {\n Ext.oldMethod = Ext.newMethod;\n\n ...\n});\n</code></pre>\n",
118 "html_filename": "Version.html"
125 "href": "Version.html#Ext-Version-method-equals",
126 "shortDoc": "Returns whether this version equals to the supplied argument ...",
128 "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/version/Version.js",
132 "type": "String/Number",
134 "doc": "<p>The version to compare with</p>\n",
139 "owner": "Ext.Version",
140 "doc": "<p>Returns whether this version equals to the supplied argument</p>\n",
144 "doc": "<p>True if this version equals to the target, false otherwise</p>\n"
146 "html_filename": "Version.html"
153 "href": "Version.html#Ext-Version-method-getBuild",
154 "shortDoc": "Returns the build component value ...",
156 "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/version/Version.js",
162 "owner": "Ext.Version",
163 "doc": "<p>Returns the build component value</p>\n",
167 "doc": "<p>build</p>\n"
169 "html_filename": "Version.html"
176 "href": "Version.html#Ext-Version-method-getComponentValue",
177 "shortDoc": "Converts a version component to a comparable value ...",
179 "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/version/Version.js",
185 "doc": "<p>The value to convert</p>\n",
189 "name": "getComponentValue",
190 "owner": "Ext.Version",
191 "doc": "<p>Converts a version component to a comparable value</p>\n",
197 "html_filename": "Version.html"
204 "href": "Version.html#Ext-Version-method-getMajor",
205 "shortDoc": "Returns the major component value ...",
207 "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/version/Version.js",
213 "owner": "Ext.Version",
214 "doc": "<p>Returns the major component value</p>\n",
218 "doc": "<p>major</p>\n"
220 "html_filename": "Version.html"
227 "href": "Version.html#Ext-Version-method-getMinor",
228 "shortDoc": "Returns the minor component value ...",
230 "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/version/Version.js",
236 "owner": "Ext.Version",
237 "doc": "<p>Returns the minor component value</p>\n",
241 "doc": "<p>minor</p>\n"
243 "html_filename": "Version.html"
250 "href": "Version.html#Ext-Version-method-getPatch",
251 "shortDoc": "Returns the patch component value ...",
253 "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/version/Version.js",
259 "owner": "Ext.Version",
260 "doc": "<p>Returns the patch component value</p>\n",
264 "doc": "<p>patch</p>\n"
266 "html_filename": "Version.html"
273 "href": "Version.html#Ext-Version-method-getRelease",
274 "shortDoc": "Returns the release component value ...",
276 "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/version/Version.js",
281 "name": "getRelease",
282 "owner": "Ext.Version",
283 "doc": "<p>Returns the release component value</p>\n",
287 "doc": "<p>release</p>\n"
289 "html_filename": "Version.html"
296 "href": "Version.html#Ext-Version-method-getShortVersion",
297 "shortDoc": "Returns shortVersion version without dots and release ...",
299 "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/version/Version.js",
304 "name": "getShortVersion",
305 "owner": "Ext.Version",
306 "doc": "<p>Returns shortVersion version without dots and release</p>\n",
312 "html_filename": "Version.html"
319 "href": "Version.html#Ext-Version-method-getVersion",
320 "shortDoc": "Get the version number of the supplied package name; will return the last registered version\n(last Ext.setVersion cal...",
322 "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/version/Version.js",
328 "doc": "<p>(Optional) The package name, for example: 'core', 'touch', 'extjs'</p>\n",
329 "name": "packageName"
332 "name": "getVersion",
333 "owner": "Ext.Version",
334 "doc": "<p>Get the version number of the supplied package name; will return the last registered version\n(last Ext.setVersion call) if there's no package name given.</p>\n",
337 "type": "Ext.Version",
338 "doc": "<p>The version</p>\n"
340 "html_filename": "Version.html"
347 "href": "Version.html#Ext-Version-method-isGreaterThan",
348 "shortDoc": "Returns whether this version if greater than the supplied argument ...",
350 "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/version/Version.js",
354 "type": "String/Number",
356 "doc": "<p>The version to compare with</p>\n",
360 "name": "isGreaterThan",
361 "owner": "Ext.Version",
362 "doc": "<p>Returns whether this version if greater than the supplied argument</p>\n",
366 "doc": "<p>True if this version if greater than the target, false otherwise</p>\n"
368 "html_filename": "Version.html"
375 "href": "Version.html#Ext-Version-method-isLessThan",
376 "shortDoc": "Returns whether this version if smaller than the supplied argument ...",
378 "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/version/Version.js",
382 "type": "String/Number",
384 "doc": "<p>The version to compare with</p>\n",
388 "name": "isLessThan",
389 "owner": "Ext.Version",
390 "doc": "<p>Returns whether this version if smaller than the supplied argument</p>\n",
394 "doc": "<p>True if this version if smaller than the target, false otherwise</p>\n"
396 "html_filename": "Version.html"
403 "href": "Version.html#Ext-Version-method-match",
404 "shortDoc": "Returns whether this version matches the supplied argument. ...",
406 "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/version/Version.js",
410 "type": "String/Number",
412 "doc": "<p>The version to compare with</p>\n",
417 "owner": "Ext.Version",
418 "doc": "<p>Returns whether this version matches the supplied argument. Example:</p>\n\n<pre><code>var version = new Ext.Version('1.0.2beta');\nconsole.log(version.match(1)); // True\nconsole.log(version.match(1.0)); // True\nconsole.log(version.match('1.0.2')); // True\nconsole.log(version.match('1.0.2RC')); // False\n</code></pre>\n\n",
422 "doc": "<p>True if this version matches the target, false otherwise</p>\n"
424 "html_filename": "Version.html"
431 "href": "Version.html#Ext-Version-method-setVersion",
432 "shortDoc": "Set version number for the given package name. ...",
434 "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/version/Version.js",
440 "doc": "<p>The package name, for example: 'core', 'touch', 'extjs'</p>\n",
441 "name": "packageName"
444 "type": "String/Ext.Version",
446 "doc": "<p>The version, for example: '1.2.3alpha', '2.4.0-dev'</p>\n",
450 "name": "setVersion",
451 "owner": "Ext.Version",
452 "doc": "<p>Set version number for the given package name.</p>\n",
458 "html_filename": "Version.html"
465 "href": "Version.html#Ext-Version-method-toArray",
466 "shortDoc": "Returns this format: [major, minor, patch, build, release]. ...",
468 "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/version/Version.js",
474 "owner": "Ext.Version",
475 "doc": "<p>Returns this format: [major, minor, patch, build, release]. Useful for comparison</p>\n",
481 "html_filename": "Version.html"
507 "href": "Version.html#Ext-Version",
512 "author": "Jacky Nguyen <jacky@sencha.com>",
514 "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/version/Version.js",
516 "alternateClassNames": [
519 "name": "Ext.Version",
520 "doc": "<p>A utility class that wrap around a string version number and provide convenient\nmethod to perform comparison. See also: <a href=\"#/api/Ext.Version-method-compare\" rel=\"Ext.Version-method-compare\" class=\"docClass\">compare</a>. Example:</p>\n\n<pre><code>var version = new Ext.Version('1.0.2beta');\nconsole.log(\"Version is \" + version); // Version is 1.0.2beta\n\nconsole.log(version.getMajor()); // 1\nconsole.log(version.getMinor()); // 0\nconsole.log(version.getPatch()); // 2\nconsole.log(version.getBuild()); // 0\nconsole.log(version.getRelease()); // beta\n\nconsole.log(version.isGreaterThan('1.0.1')); // True\nconsole.log(version.isGreaterThan('1.0.2alpha')); // True\nconsole.log(version.isGreaterThan('1.0.2RC')); // False\nconsole.log(version.isGreaterThan('1.0.2')); // False\nconsole.log(version.isLessThan('1.0.2')); // True\n\nconsole.log(version.match(1.0)); // True\nconsole.log(version.match('1.0.2')); // True\n</code></pre>\n",
528 "html_filename": "Version.html",