diff --git a/app/components/Layout.jsx b/app/components/Layout.jsx index 6199433..43eb464 100644 --- a/app/components/Layout.jsx +++ b/app/components/Layout.jsx @@ -82,9 +82,8 @@ var Layout = React.createClass({ }); }, - componentWillReceiveProps: function(nextProps) { - if (nextProps.params) - this.pictureFill(); + componentDidUpdate: function() { + this.pictureFill(); }, // Runs the picturefill polyfill