Skip to content

Commit

Permalink
Removed unnecessary rx Select.
Browse files Browse the repository at this point in the history
  • Loading branch information
grokys committed Mar 7, 2016
1 parent 3532da2 commit b46d91e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Perspex.Styling/Styling/TypeNameAndClassSelector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,7 @@ protected override SelectorMatch Evaluate(IStyleable control, bool subscribe)
NotifyCollectionChangedEventArgs>(
x => control.Classes.CollectionChanged += x,
x => control.Classes.CollectionChanged -= x)
.Select(_ => Unit.Default)
.StartWith(Unit.Default)
.StartWith((EventPattern<NotifyCollectionChangedEventArgs>)null)
.Select(_ => Matches(control.Classes));
return new SelectorMatch(observable);
}
Expand Down

0 comments on commit b46d91e

Please sign in to comment.