release
Etienne Lemay 2016-05-31 15:16:48 -04:00
parent 895a31fecd
commit fed3733eb4
1 changed files with 5 additions and 6 deletions

View File

@ -9,12 +9,11 @@ export default class Emoji extends React.Component {
this.emoji = data.emojis[this.props.emoji] this.emoji = data.emojis[this.props.emoji]
} }
shouldComponentUpdate(props) { shouldComponentUpdate(nextProps) {
if (props.size != this.props.size || props.sheetURL != this.props.sheetURL) { return (
return true nextProps.size != this.props.size ||
} nextProps.sheetURL != this.props.sheetURL
)
return false
} }
getSheetSize() { getSheetSize() {