-<!DOCTYPE html><html><head><title>Sencha Documentation Project</title><link rel="stylesheet" href="../reset.css" type="text/css"><link rel="stylesheet" href="../prettify.css" type="text/css"><link rel="stylesheet" href="../prettify_sa.css" type="text/css"><script type="text/javascript" src="../prettify.js"></script></head><body onload="prettyPrint()"><pre class="prettyprint"><pre><span id='Ext-env.OS'>/**
+<!DOCTYPE html>
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+ <title>The source code</title>
+ <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
+ <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
+ <style type="text/css">
+ .highlight { display: block; background-color: #ddd; }
+ </style>
+ <script type="text/javascript">
+ function highlight() {
+ document.getElementById(location.hash.replace(/#/, "")).className = "highlight";
+ }
+ </script>
+</head>
+<body onload="prettyPrint(); highlight();">
+ <pre class="prettyprint lang-js"><span id='Ext-env-OS'>/**
</span> * @class Ext.env.OS
- * Provide useful information about the current operating system environment. Access the global instance stored in Ext.os. Example:
- * <pre><code>
- * if (Ext.os.is.Windows) {
- * // Windows specific code here
- * }
+ * Provides useful information about the current operating system environment.
+ * Access the global instance stored in {@link Ext#os}. Example:
+ *
+ * if (Ext.os.is.Windows) {
+ * // Windows specific code here
+ * }
*
- * if (Ext.os.is.iOS) {
- * // iPad, iPod, iPhone, etc.
- * }
+ * if (Ext.os.is.iOS) {
+ * // iPad, iPod, iPhone, etc.
+ * }
*
- * console.log("Version " + Ext.os.version);
- * </code></pre>
+ * console.log("Version " + Ext.os.version);
*
- * For a full list of supported values, refer to: {@link Ext.env.OS#is Ext.env.OS.is}
+ * For a full list of supported values, refer to: {@link Ext.env.OS#is}
*/
Ext.define('Ext.env.OS', {
}
},
- /*
- * A "hybrid" property, can be either accessed as a method call, i.e:
- * <pre><code>
- * if (Ext.os.is('Android')) { ... }
- * </code></pre>
+<span id='Ext-env-OS-method-is'> /**
+</span> * A "hybrid" property, can be either accessed as a method call, i.e:
+ *
+ * if (Ext.os.is('Android')) { ... }
*
* or as an object with boolean properties, i.e:
- * <pre><code>
- * if (Ext.os.is.Android) { ... }
- * </code></pre>
+ *
+ * if (Ext.os.is.Android) { ... }
*
* Versions can be conveniently checked as well. For example:
- * <pre><code>
- * if (Ext.os.is.Android2) { ... } // Equivalent to (Ext.os.is.Android && Ext.os.version.equals(2))
*
- * if (Ext.os.is.iOS32) { ... } // Equivalent to (Ext.os.is.iOS && Ext.os.version.equals(3.2))
- * </code></pre>
+ * if (Ext.os.is.Android2) { ... } // Equivalent to (Ext.os.is.Android && Ext.os.version.equals(2))
+ *
+ * if (Ext.os.is.iOS32) { ... } // Equivalent to (Ext.os.is.iOS && Ext.os.version.equals(3.2))
*
* Note that only {@link Ext.Version#getMajor major component} and {@link Ext.Version#getShortVersion shortVersion}
* value of the version are available via direct property checking.
*
* @param {String} value The OS name to check
* @return {Boolean}
+ * @method
*/
is: Ext.emptyFn,
- /*
+<span id='Ext-env-OS-property-name'> /**
+</span> * @property {String} name
* Read-only - the full name of the current operating system
* Possible values are: iOS, Android, WebOS, BlackBerry, MacOSX, Windows, Linux and Other
- * @type String
*/
name: null,
- /*
+<span id='Ext-env-OS-property-version'> /**
+</span> * @property {Ext.Version} version
* Read-only, refer to {@link Ext.Version}
- * @type Ext.Version
*/
version: null,
}
}, function() {
-Ext.os = new Ext.env.OS();
+<span id='Ext-property-os'> /**
+</span> * @property {Ext.env.OS} os
+ * @member Ext
+ * Global convenient instance of {@link Ext.env.OS}.
+ */
+ Ext.os = new Ext.env.OS();
});
-</pre></pre></body></html>
\ No newline at end of file
+</pre>
+</body>
+</html>