Browse Source

Don't use StartWith in GetObservable

As it erases the Description.
pull/58/head
Steven Kirk 12 years ago
parent
commit
7859588621
  1. 4
      Perspex.Base/PerspexObject.cs

4
Perspex.Base/PerspexObject.cs

@ -316,13 +316,15 @@ namespace Perspex
} }
}; };
observer.OnNext(this.GetValue(property));
this.PropertyChanged += handler; this.PropertyChanged += handler;
return Disposable.Create(() => return Disposable.Create(() =>
{ {
this.PropertyChanged -= handler; this.PropertyChanged -= handler;
}); });
}, this.GetObservableDescription(property)).StartWith(this.GetValue(property)); }, this.GetObservableDescription(property));
} }
/// <summary> /// <summary>

Loading…
Cancel
Save