From b46d91e71e895739260ffab2c0c0ce3bb047ebf6 Mon Sep 17 00:00:00 2001 From: Steven Kirk Date: Mon, 7 Mar 2016 22:04:20 +0100 Subject: [PATCH] Removed unnecessary rx Select. --- src/Perspex.Styling/Styling/TypeNameAndClassSelector.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Perspex.Styling/Styling/TypeNameAndClassSelector.cs b/src/Perspex.Styling/Styling/TypeNameAndClassSelector.cs index 5cf07fcbf2e..fa17aab012b 100644 --- a/src/Perspex.Styling/Styling/TypeNameAndClassSelector.cs +++ b/src/Perspex.Styling/Styling/TypeNameAndClassSelector.cs @@ -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)null) .Select(_ => Matches(control.Classes)); return new SelectorMatch(observable); }