examples/dist/common.js
function prefixAll(styles) {
  Object.keys(styles).forEach(function (property) {
    var value = styles[property];
    if (value instanceof Object && !Array.isArray(value)) {
      // recurse through nested style objects
      styles[property] = prefixAll(value);
    } else {
      Object.keys(_prefixProps2.default).forEach(function (prefix) {
        var properties = _prefixProps2.default[prefix];
        // add prefixes if needed
        if (properties[property]) {
          styles[prefix + (0, _capitalizeString2.default)(property)] = value;
        }
      });
    }
  });

  Object.keys(styles).forEach(function (property) {
    [].concat(styles[property]).forEach(function (value, index) {
      // resolve every special plugins
      plugins.forEach(function (plugin) {
        return assignStyles(styles, plugin(property, value));
      });
    });
  });

  return (0, _sortPrefixedStyle2.default)(styles);
}
function prefixAll(styles) {
  Object.keys(styles).forEach(function (property) {
    var value = styles[property];
    if (value instanceof Object && !Array.isArray(value)) {
      // recurse through nested style objects
      styles[property] = prefixAll(value);
    } else {
      Object.keys(_prefixProps2.default).forEach(function (prefix) {
        var properties = _prefixProps2.default[prefix];
        // add prefixes if needed
        if (properties[property]) {
          styles[prefix + (0, _capitalizeString2.default)(property)] = value;
        }
      });
    }
  });

  Object.keys(styles).forEach(function (property) {
    [].concat(styles[property]).forEach(function (value, index) {
      // resolve every special plugins
      plugins.forEach(function (plugin) {
        return assignStyles(styles, plugin(property, value));
      });
    });
  });

  return (0, _sortPrefixedStyle2.default)(styles);
}
function prefixAll ( styles ) { Object . keys ( styles ) . forEach ( function ( property ) { var value = styles [ property ] ; if ( value instanceof Object && ! Array . isArray ( value ) ) { // recurse through nested style objects styles [ property ] = prefixAll ( value ) ; } else { Object . keys ( _prefixProps2 . default ) . forEach ( function ( prefix ) { var properties = _prefixProps2 . default [ prefix ] ; // add prefixes if needed if ( properties [ property ] ) { styles [ prefix + ( 0 , _capitalizeString2 . default ) ( property ) ] = value ; } } ) ; } } ) ; Object . keys ( styles ) . forEach ( function ( property ) { [ ] . concat ( styles [ property ] ) . forEach ( function ( value , index ) { // resolve every special plugins plugins . forEach ( function ( plugin ) { return assignStyles ( styles , plugin ( property , value ) ) ; } ) ; } ) ; } ) ; return ( 0 , _sortPrefixedStyle2 . default ) ( styles ) ; }
Returns a prefixed version of the style object using all vendor prefixes
@param {Object} styles - Style object that gets prefixed properties added
@returns {Object} - Style object with prefixed properties and values
Returns a prefixed version of the style object using all vendor prefixes