Fix sidebar icon not always updating color

This commit is contained in:
Paulus Schoutsen 2016-03-27 23:45:05 -07:00
parent 44234dad28
commit d8afde516a

View File

@ -33,7 +33,6 @@ export default new Polymer({
selected: { selected: {
type: String, type: String,
bindNuclear: navigationGetters.activePane, bindNuclear: navigationGetters.activePane,
// observer: 'selectedChanged',
}, },
hasHistoryComponent: { hasHistoryComponent: {
@ -48,7 +47,7 @@ export default new Polymer({
}, },
menuSelect() { menuSelect() {
this.updateStyles(); this.debounce('updateStyles', () => this.updateStyles(), 1);
}, },
menuClicked(ev) { menuClicked(ev) {
@ -78,6 +77,7 @@ export default new Polymer({
return; return;
} }
navigationActions.navigate.apply(null, newChoice.split('/')); navigationActions.navigate.apply(null, newChoice.split('/'));
this.debounce('updateStyles', () => this.updateStyles(), 1);
}, },
handleLogOut() { handleLogOut() {