Skip to content

Commit

Permalink
Merge pull request reactiveui#826 from nsainaney/master
Browse files Browse the repository at this point in the history
Possible fix for issue reactiveui#746
  • Loading branch information
anaisbetts committed Apr 6, 2015
2 parents caaae3a + e2cf7bf commit 63f1401
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ReactiveUI/WeakEventManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,11 @@ public bool Matches(object source, TEventHandler handler)
return this.source != null &&
Object.ReferenceEquals(this.source.Target, source) &&
this.originalHandler != null &&
Object.ReferenceEquals(this.originalHandler.Target, handler);
(Object.ReferenceEquals(this.originalHandler.Target, handler) ||
(this.originalHandler.Target is PropertyChangedEventHandler &&
handler is PropertyChangedEventHandler &&
object.Equals((this.originalHandler.Target as PropertyChangedEventHandler).Target,
(handler as PropertyChangedEventHandler).Target)));
}
}

Expand Down

0 comments on commit 63f1401

Please sign in to comment.