fix disconnected observers when an observer registers itself to multiple ListMonitors

This commit is contained in:
John Estropia
2015-08-28 12:09:55 +09:00
parent 21a524d725
commit 56ea14d53c
3 changed files with 50 additions and 50 deletions

View File

@@ -22,6 +22,11 @@ class ObjectObserverDemoViewController: UIViewController, ObjectObserver {
}
set {
guard self.monitor?.object != newValue else {
return
}
if let palette = newValue {
self.monitor = CoreStore.monitorObject(palette)