1 Ext.data.JsonP.Ext_Version({
4 "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",
9 "alternateClassNames": [
13 "author": "Jacky Nguyen <jacky@sencha.com>",
14 "docauthor": "Jacky Nguyen <jacky@sencha.com>",
24 "member": "Ext.Version",
28 "type": "String/Number",
30 "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",
41 "type": "Ext.Version",
42 "doc": "<p>this</p>\n"
46 "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/version/Version.js",
48 "html_filename": "Version.html",
49 "href": "Version.html#Ext-Version-method-constructor",
55 "member": "Ext.Version",
56 "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",
61 "doc": "<p>The current version to compare to</p>\n",
67 "doc": "<p>The target version to compare to</p>\n",
73 "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"
77 "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/version/Version.js",
79 "html_filename": "Version.html",
80 "href": "Version.html#Ext-Version-method-compare",
81 "shortDoc": "Compare 2 specified versions, starting from left to right. If a part contains special version strings,\nthey are handl..."
86 "member": "Ext.Version",
87 "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",
91 "name": "packageName",
92 "doc": "<p>The package name</p>\n",
98 "doc": "<p>The last version before it's deprecated</p>\n",
104 "doc": "<p>The callback function to be executed with the specified version is less than the current version</p>\n",
110 "doc": "<p>The execution scope (<tt>this</tt>) if the closure</p>\n",
120 "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/version/Version.js",
122 "html_filename": "Version.html",
123 "href": "Version.html#Ext-Version-method-deprecate",
124 "shortDoc": "Create a closure for deprecated code.\n\n// This means Ext.oldMethod is only supported in 4.0.0beta and older.\n// If Ex..."
129 "member": "Ext.Version",
130 "doc": "<p>Returns whether this version equals to the supplied argument</p>\n",
133 "type": "String/Number",
135 "doc": "<p>The version to compare with</p>\n",
141 "doc": "<p>True if this version equals to the target, false otherwise</p>\n"
145 "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/version/Version.js",
147 "html_filename": "Version.html",
148 "href": "Version.html#Ext-Version-method-equals",
149 "shortDoc": "<p>Returns whether this version equals to the supplied argument</p>\n"
154 "member": "Ext.Version",
155 "doc": "<p>Returns the build component value</p>\n",
161 "doc": "<p>build</p>\n"
165 "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/version/Version.js",
167 "html_filename": "Version.html",
168 "href": "Version.html#Ext-Version-method-getBuild",
169 "shortDoc": "<p>Returns the build component value</p>\n"
173 "name": "getComponentValue",
174 "member": "Ext.Version",
175 "doc": "<p>Converts a version component to a comparable value</p>\n",
180 "doc": "<p>The value to convert</p>\n",
190 "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/version/Version.js",
192 "html_filename": "Version.html",
193 "href": "Version.html#Ext-Version-method-getComponentValue",
194 "shortDoc": "<p>Converts a version component to a comparable value</p>\n"
199 "member": "Ext.Version",
200 "doc": "<p>Returns the major component value</p>\n",
206 "doc": "<p>major</p>\n"
210 "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/version/Version.js",
212 "html_filename": "Version.html",
213 "href": "Version.html#Ext-Version-method-getMajor",
214 "shortDoc": "<p>Returns the major component value</p>\n"
219 "member": "Ext.Version",
220 "doc": "<p>Returns the minor component value</p>\n",
226 "doc": "<p>minor</p>\n"
230 "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/version/Version.js",
232 "html_filename": "Version.html",
233 "href": "Version.html#Ext-Version-method-getMinor",
234 "shortDoc": "<p>Returns the minor component value</p>\n"
239 "member": "Ext.Version",
240 "doc": "<p>Returns the patch component value</p>\n",
246 "doc": "<p>patch</p>\n"
250 "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/version/Version.js",
252 "html_filename": "Version.html",
253 "href": "Version.html#Ext-Version-method-getPatch",
254 "shortDoc": "<p>Returns the patch component value</p>\n"
258 "name": "getRelease",
259 "member": "Ext.Version",
260 "doc": "<p>Returns the release component value</p>\n",
266 "doc": "<p>release</p>\n"
270 "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/version/Version.js",
272 "html_filename": "Version.html",
273 "href": "Version.html#Ext-Version-method-getRelease",
274 "shortDoc": "<p>Returns the release component value</p>\n"
278 "name": "getShortVersion",
279 "member": "Ext.Version",
280 "doc": "<p>Returns shortVersion version without dots and release</p>\n",
290 "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/version/Version.js",
292 "html_filename": "Version.html",
293 "href": "Version.html#Ext-Version-method-getShortVersion",
294 "shortDoc": "<p>Returns shortVersion version without dots and release</p>\n"
298 "name": "getVersion",
299 "member": "Ext.Version",
300 "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",
304 "name": "packageName",
305 "doc": "<p>(Optional) The package name, for example: 'core', 'touch', 'extjs'</p>\n",
310 "type": "Ext.Version",
311 "doc": "<p>The version</p>\n"
315 "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/version/Version.js",
317 "html_filename": "Version.html",
318 "href": "Version.html#Ext-Version-method-getVersion",
319 "shortDoc": "Get the version number of the supplied package name; will return the last registered version\n(last Ext.setVersion cal..."
323 "name": "isGreaterThan",
324 "member": "Ext.Version",
325 "doc": "<p>Returns whether this version if greater than the supplied argument</p>\n",
328 "type": "String/Number",
330 "doc": "<p>The version to compare with</p>\n",
336 "doc": "<p>True if this version if greater than the target, false otherwise</p>\n"
340 "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/version/Version.js",
342 "html_filename": "Version.html",
343 "href": "Version.html#Ext-Version-method-isGreaterThan",
344 "shortDoc": "<p>Returns whether this version if greater than the supplied argument</p>\n"
348 "name": "isLessThan",
349 "member": "Ext.Version",
350 "doc": "<p>Returns whether this version if smaller than the supplied argument</p>\n",
353 "type": "String/Number",
355 "doc": "<p>The version to compare with</p>\n",
361 "doc": "<p>True if this version if smaller than the target, false otherwise</p>\n"
365 "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/version/Version.js",
367 "html_filename": "Version.html",
368 "href": "Version.html#Ext-Version-method-isLessThan",
369 "shortDoc": "<p>Returns whether this version if smaller than the supplied argument</p>\n"
374 "member": "Ext.Version",
375 "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",
378 "type": "String/Number",
380 "doc": "<p>The version to compare with</p>\n",
386 "doc": "<p>True if this version matches the target, false otherwise</p>\n"
390 "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/version/Version.js",
392 "html_filename": "Version.html",
393 "href": "Version.html#Ext-Version-method-match",
394 "shortDoc": "Returns whether this version matches the supplied argument. Example:\n\nvar version = new Ext.Version('1.0.2beta');\ncon..."
398 "name": "setVersion",
399 "member": "Ext.Version",
400 "doc": "<p>Set version number for the given package name.</p>\n",
404 "name": "packageName",
405 "doc": "<p>The package name, for example: 'core', 'touch', 'extjs'</p>\n",
409 "type": "String/Ext.Version",
411 "doc": "<p>The version, for example: '1.2.3alpha', '2.4.0-dev'</p>\n",
421 "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/version/Version.js",
423 "html_filename": "Version.html",
424 "href": "Version.html#Ext-Version-method-setVersion",
425 "shortDoc": "<p>Set version number for the given package name.</p>\n"
430 "member": "Ext.Version",
431 "doc": "<p>Returns this format: [major, minor, patch, build, release]. Useful for comparison</p>\n",
441 "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/version/Version.js",
443 "html_filename": "Version.html",
444 "href": "Version.html#Ext-Version-method-toArray",
445 "shortDoc": "<p>Returns this format: [major, minor, patch, build, release]. Useful for comparison</p>\n"
454 "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/version/Version.js",
456 "html_filename": "Version.html",
457 "href": "Version.html#Ext-Version",