diff --git a/Action.swift b/Action.swift index 51147db9..d9a15cbc 100644 --- a/Action.swift +++ b/Action.swift @@ -78,7 +78,7 @@ public final class Action { self.inputs.subscribe(onNext: { [weak self] (input) in self?._execute(input) - }, onError: nil, onCompleted: nil, onDisposed: nil).addDisposableTo(disposeBag) + }, onError: nil, onCompleted: nil, onDisposed: nil).addDisposableTo(disposeBag) } } diff --git a/UIBarButtonItem+Action.swift b/UIBarButtonItem+Action.swift index d74cd143..7ce54c08 100644 --- a/UIBarButtonItem+Action.swift +++ b/UIBarButtonItem+Action.swift @@ -34,8 +34,8 @@ public extension UIBarButtonItem { self.rx.tap.subscribe(onNext: { (_) in action.execute() - }, onError: nil, onCompleted: nil, onDisposed: nil) - .addDisposableTo(self.actionDisposeBag) + }, onError: nil, onCompleted: nil, onDisposed: nil) + .addDisposableTo(self.actionDisposeBag) } } }