Class: Browser

Browser(ua, $container)

new Browser(ua, $container)

Representation of user's current browser

Parameters:
Name Type Description
ua string

the user agent of the current browser

$container jQuery.Object

an element to associate with the Browser object

Source:

Members

isIos

Returns whether the current browser is an ios device. FIXME: jquery.client does not support iPad detection so we cannot use it.

Source:

isWideScreen

Determine if a device has a widescreen.

Source:

supportsAnimations

Checks browser support for CSS transforms, transitions and CSS animation. Currently assumes support for the latter 2 in the case of the former. See http://stackoverflow.com/a/12621264/365238

Source:

supportsGeoLocation

Detect if browser supports geolocation

Source:

supportsTouchEvents

Whether touchstart and other touch events are supported by the current browser.

Source:

Methods

(static) getSingleton() → {Browser}

Source:
Returns:
Type
Browser