rename settings watcher refs in LeftPanel
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
d5f6d781bb
commit
9e9c56d327
1 changed files with 4 additions and 4 deletions
|
@ -52,9 +52,9 @@ const LeftPanel = createReactClass({
|
||||||
componentWillMount: function() {
|
componentWillMount: function() {
|
||||||
this.focusedElement = null;
|
this.focusedElement = null;
|
||||||
|
|
||||||
this._settingWatchRef = SettingsStore.watchSetting(
|
this._breadcrumbsWatcherRef = SettingsStore.watchSetting(
|
||||||
"breadcrumbs", null, this._onBreadcrumbsChanged);
|
"breadcrumbs", null, this._onBreadcrumbsChanged);
|
||||||
this._settingWatchRef1 = SettingsStore.watchSetting(
|
this._tagPanelWatcherRef = SettingsStore.watchSetting(
|
||||||
"TagPanel.enableTagPanel", null, () => this.forceUpdate());
|
"TagPanel.enableTagPanel", null, () => this.forceUpdate());
|
||||||
|
|
||||||
const useBreadcrumbs = !!SettingsStore.getValue("breadcrumbs");
|
const useBreadcrumbs = !!SettingsStore.getValue("breadcrumbs");
|
||||||
|
@ -63,8 +63,8 @@ const LeftPanel = createReactClass({
|
||||||
},
|
},
|
||||||
|
|
||||||
componentWillUnmount: function() {
|
componentWillUnmount: function() {
|
||||||
SettingsStore.unwatchSetting(this._settingWatchRef);
|
SettingsStore.unwatchSetting(this._breadcrumbsWatcherRef);
|
||||||
SettingsStore.unwatchSetting(this._settingWatchRef1);
|
SettingsStore.unwatchSetting(this._tagPanelWatcherRef);
|
||||||
},
|
},
|
||||||
|
|
||||||
shouldComponentUpdate: function(nextProps, nextState) {
|
shouldComponentUpdate: function(nextProps, nextState) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue