Skip to content

Commit

Permalink
DIG-suggestion removed unneded prefixer
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Havig committed May 2, 2016
1 parent 49978c7 commit 55847b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions src/ffe-expandable-react.jsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,6 @@
import React from 'react';
import ComponentHeight from './ffe-component-height';

const capitalize = str => str.charAt(0).toUpperCase() + str.slice(1);
const prefixed = (attribute, value) => {
const capAttr = capitalize(attribute);
return ['Moz', 'Webkit', 'O']
.map(_ => _ + capAttr)
.concat([attribute])
.reduce((result, _) => (result[_] = value) && result, {});
};

class Expandable extends React.Component {

constructor() {
Expand All @@ -31,8 +22,9 @@ class Expandable extends React.Component {

const styles = Object.assign({
maxHeight: isOpen ? height : 0,
overflow: 'hidden'
}, prefixed('transition', `all ${expandTime}s`));
overflow: 'hidden',
transition: `all ${expandTime}s`
});

return (
<div>
Expand Down
File renamed without changes.

0 comments on commit 55847b3

Please sign in to comment.