Skip to content

Commit

Permalink
Remove shouldComponentUpdate for Immutable SearchSelectEntry
Browse files Browse the repository at this point in the history
  • Loading branch information
darkdh committed Aug 20, 2016
1 parent f82a848 commit 1477399
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions js/about/preferences.js
Original file line number Diff line number Diff line change
Expand Up @@ -364,10 +364,6 @@ class GeneralTab extends ImmutableComponent {
}

class SearchSelectEntry extends ImmutableComponent {
shouldComponentUpdate (nextProps, nextState) {
return getSetting(settings.DEFAULT_SEARCH_ENGINE, this.props.settings) !==
getSetting(settings.DEFAULT_SEARCH_ENGINE, nextProps.settings)
}
render () {
return <div>
{getSetting(settings.DEFAULT_SEARCH_ENGINE, this.props.settings) === this.props.name
Expand Down

0 comments on commit 1477399

Please sign in to comment.