core/src/ons/gesture-detector.js
function setPrefixedCss(element, prop, value, toggle) {
    var prefixes = ['', 'Webkit', 'Moz', 'O', 'ms'];
    prop = Utils.toCamelCase(prop);

    for (var i = 0; i < prefixes.length; i++) {
      var p = prop;
      // prefixes
      if (prefixes[i]) {
        p = prefixes[i] + p.slice(0, 1).toUpperCase() + p.slice(1);
      }

      // test the style
      if (p in element.style) {
        element.style[p] = (toggle === null || toggle) && value || '';
        break;
      }
    }
  }
function setPrefixedCss(element, prop, value, toggle) {
    var prefixes = ['', 'Webkit', 'Moz', 'O', 'ms'];
    prop = Utils.toCamelCase(prop);

    for (var i = 0; i < prefixes.length; i++) {
      var p = prop;
      // prefixes
      if (prefixes[i]) {
        p = prefixes[i] + p.slice(0, 1).toUpperCase() + p.slice(1);
      }

      // test the style
      if (p in element.style) {
        element.style[p] = (toggle === null || toggle) && value || '';
        break;
      }
    }
  }
function setPrefixedCss ( element , prop , value , toggle ) { var prefixes = [ '' , 'Webkit' , 'Moz' , 'O' , 'ms' ] ; prop = Utils . toCamelCase ( prop ) ; for ( var i = 0 ; i < prefixes . length ; i ++ ) { var p = prop ; // prefixes if ( prefixes [ i ] ) { p = prefixes [ i ] + p . slice ( 0 , 1 ) . toUpperCase ( ) + p . slice ( 1 ) ; } // test the style if ( p in element . style ) { element . style [ p ] = ( toggle === null || toggle ) && value || '' ; break ; } } }
set css properties with their prefixes
@param {HTMLElement} element
@param {String} prop
@param {String} value
@param {Boolean} [toggle=true]
@return {Boolean}
set css properties with their prefixes