documentation

Documentation generator: JsDoc Toolkit 2.4.0
Template: Wink 1.0
Generated on:

Namespace wink.has

Feature detection

Namespace Summary
Constructor Attributes Constructor Name and Description
 
Compatibility
Compatibility list Supported platforms / browsers
iOS2, iOS3, iOS4, iOS5, iOS6, Android 1.1, Android 1.5, Android 2.1, Android 2.2, Android 2.3, Android 3.0, Android 3.1, Android 4.0, BlackBerry 6, BlackBerry 7, Bada 1.0, Windows Phone 7.5, Windows Phone 8

Method Summary

Namespace Detail

wink.has
See:
Test page

Field Detail

<static> {object} wink.has.getFeatures
Get all features
<static> {object} wink.has.getProperties
Get all properties

Method Detail

  • <static> wink.has.deferProp(key, proc)
    Defer the property recovery on a function or on a feature detection
    Parameters:
    {string} key
    The property
    {function} proc
    The defered process
  • {boolean} has(feature)
    Test if the given feature is supported
    if ( wink.has('native-geolocation') )
    {
    	...
    }
    
    // Supported features:
    
    native-geolocation, 
    native-device-orientation, 
    native-device-motion, 
    css-transform, 
    css-transition, 
    css-translate3d, 
    css-border-radius, 
    css-text-shadow, 
    css-box-shadow, 
    css-gradient, 
    css-perspective, 
    css-matrix, 
    css-matrix-stack-inversed, 
    css-position-fixed, 
    touchstart, 
    touchmove, 
    touchend, 
    touch, 
    gesturestart, 
    gesturechange, 
    transitionend, 
    gestureend, 
    gesture, 
    json-parse
    Parameters:
    {string} feature
    The feature to test
    Returns:
    {boolean} True if the feature is supported false otherwise
  • <static> wink.has.inquire(feature, assertSupported, now)
    Inquires about the given feature
    Parameters:
    {string} feature
    The feature to inquire
    {function} assertSupported
    The function that investigates or the boolean value if known
    {boolean} now
    Allows to investigate now
  • <static> wink.has.inquireMap(map, now)
    Inquires about a map of features
    Parameters:
    {object} map
    The map of features
    {boolean} now
    Allows to investigate now
  • <static> wink.has.prop(key)
    Get a property associated to the feature detection
    Parameters:
    {string} key
    The property
  • <static> wink.has.setProp(key, value)
    Set a property associated to the feature detection
    Parameters:
    {string} key
    The property
    {string} value
    The value