EMS.Browser

Static functions for accessing information about the browser.

Summary
EMS.BrowserStatic functions for accessing information about the browser.
Static Functions
getName{String} The name of the browser such as:
getVersion{Float} The browser version number as a {Float}.
getPlatform{String} The name of the platform (operating system), such as:
getEngine{String} Returns the name of the browser engine, such as:
EMS.Browser.Features
Functions
isSupported{Boolean} Whether or not the feature is supported.
EMS.Browser.Events
Constants
MOUSE{Array} Mouse event types.
KEY{Array} Key event types.
TOUCH{Array} Touch event types.
GESTURE{Array} Gesture event types.
ORIENTATION{Array} Orientation event types.
Functions
isSupported

Static Functions

getName

getName: function()

Returns

{String} The name of the browser such as:

  • ie
  • firefox
  • safari
  • chrome
  • opera

getVersion

getVersion: function()

Returns

{Float} The browser version number as a {Float}.

getPlatform

getPlatform: function()

Returns

{String} The name of the platform (operating system), such as:

  • mac
  • win
  • linux
  • ios
  • android
  • webos
  • other

getEngine

getEngine: function()

Returns

{String} Returns the name of the browser engine, such as:

  • trident
  • gecko
  • webkit
  • presto

EMS.Browser.Features

Summary
Functions
isSupported{Boolean} Whether or not the feature is supported.

Functions

isSupported

isSupported: function(feature)

Returns

{Boolean} Whether or not the feature is supported.

EMS.Browser.Events

Summary
Constants
MOUSE{Array} Mouse event types.
KEY{Array} Key event types.
TOUCH{Array} Touch event types.
GESTURE{Array} Gesture event types.
ORIENTATION{Array} Orientation event types.
Functions
isSupported

Constants

MOUSE

{Array} Mouse event types.

KEY

{Array} Key event types.

TOUCH

{Array} Touch event types.

GESTURE

{Array} Gesture event types.

ORIENTATION

{Array} Orientation event types.

Functions

isSupported

isSupported: function(event)

Parameters

event{String} is either a category of events such as “mouse” or a specific event type, such as “dblclick”.  Returns: {Boolean} Whether or not the event is supported.  If the event given is a category, and some events work but others don’t, this is still considered supported.
getName: function()
{String} The name of the browser such as:
getVersion: function()
{Float} The browser version number as a {Float}.
getPlatform: function()
{String} The name of the platform (operating system), such as:
getEngine: function()
{String} Returns the name of the browser engine, such as:
isSupported: function(feature)
{Boolean} Whether or not the feature is supported.
isSupported: function(event)
Close