Removes `distinctUntilChanged` because is was creating a hidden state that can cause issues in some situations.

This commit is contained in:
Krunoslav Zaher 2016-04-17 17:02:30 +02:00
parent 756f17c848
commit 72edf869a0
3 changed files with 0 additions and 3 deletions

View File

@ -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 {

View File

@ -84,7 +84,6 @@ extension UIControl {
controlTarget.dispose()
}
}
.distinctUntilChanged()
.takeUntil((control as! NSObject).rx_deallocated)
let bindingObserver = UIBindingObserver(UIElement: control, binding: setter)

View File

@ -50,7 +50,6 @@ extension UITextView {
return textChanged
.startWith(text)
.distinctUntilChanged()
}
let bindingObserver = UIBindingObserver(UIElement: self) { (textView, text: String) in