Skip to content

Commit

Permalink
Run picture-fill *after* re-rendering. #43
Browse files Browse the repository at this point in the history
  • Loading branch information
tmeasday committed Mar 11, 2015
1 parent 9e5ad71 commit 22a2d26
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/components/Layout.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,8 @@ var Layout = React.createClass({
});
},

componentWillReceiveProps: function(nextProps) {
if (nextProps.params)
this.pictureFill();
componentDidUpdate: function() {
this.pictureFill();
},

// Runs the picturefill polyfill
Expand Down

0 comments on commit 22a2d26

Please sign in to comment.