Removes `distinctUntilChanged` because is was creating a hidden state that can cause issues in some situations.
This commit is contained in:
parent
756f17c848
commit
72edf869a0
|
|
@ -55,7 +55,6 @@ func observeWeaklyKeyPathFor(target: NSObject, keyPath: String, options: NSKeyVa
|
|||
let components = keyPath.componentsSeparatedByString(".").filter { $0 != "self" }
|
||||
|
||||
let observable = observeWeaklyKeyPathFor(target, keyPathSections: components, options: options)
|
||||
.distinctUntilChanged { $0 === $1 }
|
||||
.finishWithNilWhenDealloc(target)
|
||||
|
||||
if !options.intersect(.Initial).isEmpty {
|
||||
|
|
|
|||
|
|
@ -84,7 +84,6 @@ extension UIControl {
|
|||
controlTarget.dispose()
|
||||
}
|
||||
}
|
||||
.distinctUntilChanged()
|
||||
.takeUntil((control as! NSObject).rx_deallocated)
|
||||
|
||||
let bindingObserver = UIBindingObserver(UIElement: control, binding: setter)
|
||||
|
|
|
|||
|
|
@ -50,7 +50,6 @@ extension UITextView {
|
|||
|
||||
return textChanged
|
||||
.startWith(text)
|
||||
.distinctUntilChanged()
|
||||
}
|
||||
|
||||
let bindingObserver = UIBindingObserver(UIElement: self) { (textView, text: String) in
|
||||
|
|
|
|||
Loading…
Reference in New Issue