X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/7a654f8d43fdb43d78b63d90528bed6e86b608cc..f562e4c6e5fac7bcb445985b99acbea4d706e6f0:/docs/source/Browser.html diff --git a/docs/source/Browser.html b/docs/source/Browser.html index f3dddc1f..83d82e8c 100644 --- a/docs/source/Browser.html +++ b/docs/source/Browser.html @@ -1,23 +1,36 @@ -
+ +/** - * @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 - * } + + + + +\ No newline at end of file +The source code + + + + + + +/** + * 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: { @@ -51,33 +64,30 @@ Ext.define('Ext.env.Browser', { } }, - /** - * True if the page is running over SSL - * @type Boolean + /** + * @property {Boolean} isSecure + * True if the page is running over SSL */ isSecure: false, - /** - * True if the document is in strict mode - * @type Boolean + /** + * @property {Boolean} isStrict + * True if the document is in strict mode */ isStrict: false, - /** + /** * 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. @@ -86,32 +96,33 @@ Ext.define('Ext.env.Browser', { * * @param {String} value The OS name to check * @return {Boolean} + * @method */ is: Ext.emptyFn, - /** - * Read-only - the full name of the current browser + /** + * @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, - /** - * Read-only, refer to {@link Ext.Version} - * @type Ext.Version + /** + * @property {Ext.Version} version + * Read-only, refer to {@link Ext.Version} */ version: null, - /** - * Read-only - the full name of the current browser's engine + /** + * @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, - /** - * Read-only, refer to {@link Ext.Version} - * @type Ext.Version + /** + * @property {String} engineVersion + * Read-only, refer to {@link Ext.Version} */ engineVersion: null, @@ -170,7 +181,14 @@ Ext.define('Ext.env.Browser', { }, function() { + /** + * @property {Ext.env.Browser} browser + * @member Ext + * Global convenient instance of {@link Ext.env.Browser}. + */ Ext.browser = new Ext.env.Browser(); }); -