/**
 * Copyright (c) 2015-present, Haltu Oy
 * Released under the MIT license
 * https://github.com/haltu/muuri/blob/master/LICENSE.md
 */

import { transformProp } from './supportedTransform';

/**
 * Set inline styles to an element.
 *
 * @param {HTMLElement} element
 * @param {Object} styles
 */
export default function setStyles(element, styles) {
  for (var prop in styles) {
    element.style[prop === 'transform' ? transformProp : prop] = styles[prop];
  }
}

@@ -188,16 +188,51 @@
 form';%0A%0A
+var transformStyle = 'transform';%0A%0A
 /**%0A * S
@@ -437,17 +437,16 @@
 rop === 
-'
 transfor
@@ -446,17 +446,21 @@
 ransform
-'
+Style
  ? trans

Refactor setStyles.