-<!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.Browser'>/**
-</span> * @class Ext.env.Browser
- * @extends Ext.Base
- * Provide useful information about the current browser.
- * Should not be manually instantiated unless for unit-testing; access the global instance stored in Ext.browser instead. Example:
- * <pre><code>
- * if (Ext.browser.is.IE) {
- * // IE specific code here
- * }
+<!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-Browser'>/**
+</span> * Provides useful information about the current browser.
+ * Should not be manually instantiated unless for unit-testing; access the global instance
+ * stored in {@link Ext#browser} instead. Example:
*
- * if (Ext.browser.is.WebKit) {
- * // WebKit specific code here
- * }
+ * if (Ext.browser.is.IE) {
+ * // IE specific code here
+ * }
*
- * console.log("Version " + Ext.browser.version);
- * </code></pre>
+ * if (Ext.browser.is.WebKit) {
+ * // WebKit specific code here
+ * }
*
- * For a full list of supported values, refer to: {@link Ext.env.Browser#is}
+ * console.log("Version " + Ext.browser.version);
*
- * @borrows Ext.Base.extend
+ * For a full list of supported values, refer to: {@link Ext.env.Browser#is}
*/
Ext.define('Ext.env.Browser', {
statics: {
}
},
-<span id='Ext-env.Browser-property-isSecure'> /**
-</span> * True if the page is running over SSL
- * @type Boolean
+<span id='Ext-env-Browser-property-isSecure'> /**
+</span> * @property {Boolean} isSecure
+ * True if the page is running over SSL
*/
isSecure: false,
-<span id='Ext-env.Browser-property-isStrict'> /**
-</span> * True if the document is in strict mode
- * @type Boolean
+<span id='Ext-env-Browser-property-isStrict'> /**
+</span> * @property {Boolean} isStrict
+ * True if the document is in strict mode
*/
isStrict: false,
-<span id='Ext-env.Browser-property-is'> /**
+<span id='Ext-env-Browser-method-is'> /**
</span> * A "hybrid" property, can be either accessed as a method call, i.e:
- * <pre><code>
- * if (Ext.browser.is('IE')) { ... }
- * </code></pre>
+ *
+ * if (Ext.browser.is('IE')) { ... }
*
* or as an object with boolean properties, i.e:
- * <pre><code>
- * if (Ext.browser.is.IE) { ... }
- * </code></pre>
+ *
+ * if (Ext.browser.is.IE) { ... }
*
* Versions can be conveniently checked as well. For example:
- * <pre><code>
- * if (Ext.browser.is.IE6) { ... } // Equivalent to (Ext.browser.is.IE && Ext.browser.version.equals(6))
- * </code></pre>
+ *
+ * if (Ext.browser.is.IE6) { ... } // Equivalent to (Ext.browser.is.IE && Ext.browser.version.equals(6))
*
* 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.Browser-property-name'> /**
-</span> * Read-only - the full name of the current browser
+<span id='Ext-env-Browser-property-name'> /**
+</span> * @property {String} name
+ * Read-only - the full name of the current browser
* Possible values are: IE, Firefox, Safari, Chrome, Opera and Other
- * @type String
*/
name: null,
-<span id='Ext-env.Browser-property-version'> /**
-</span> * Read-only, refer to {@link Ext.Version}
- * @type Ext.Version
+<span id='Ext-env-Browser-property-version'> /**
+</span> * @property {Ext.Version} version
+ * Read-only, refer to {@link Ext.Version}
*/
version: null,
-<span id='Ext-env.Browser-property-engineName'> /**
-</span> * Read-only - the full name of the current browser's engine
+<span id='Ext-env-Browser-property-engineName'> /**
+</span> * @property {String} engineName
+ * Read-only - the full name of the current browser's engine
* Possible values are: WebKit, Gecko, Presto, Trident and Other
- * @type String
*/
engineName: null,
-<span id='Ext-env.Browser-property-engineVersion'> /**
-</span> * Read-only, refer to {@link Ext.Version}
- * @type Ext.Version
+<span id='Ext-env-Browser-property-engineVersion'> /**
+</span> * @property {String} engineVersion
+ * Read-only, refer to {@link Ext.Version}
*/
engineVersion: null,
}, function() {
+<span id='Ext-property-browser'> /**
+</span> * @property {Ext.env.Browser} browser
+ * @member Ext
+ * Global convenient instance of {@link Ext.env.Browser}.
+ */
Ext.browser = new Ext.env.Browser();
});
-</pre></pre></body></html>
\ No newline at end of file
+</pre>
+</body>
+</html>