Skip to content
Kerri Shotts edited this page Apr 5, 2014 · 1 revision

(part of device)

Parameters:

  • None

Returns: boolean

Returns true if the device is has a window.devicePixelRatio of 2 or higher.

Usage

if (_y.device.isRetina()) {
  // do hi dpi specific code
} else
{ // other code
}
Clone this wiki locally