From b89f3f35c7f998e071490896ba132ae855d4a37e Mon Sep 17 00:00:00 2001 From: Krunoslav Zaher Date: Mon, 21 Dec 2015 02:12:00 +0100 Subject: [PATCH] Fixes compilation error with OSX example. --- .../OSX simple example/IntroductionExampleViewController.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RxExample/RxExample/Examples/OSX simple example/IntroductionExampleViewController.swift b/RxExample/RxExample/Examples/OSX simple example/IntroductionExampleViewController.swift index df142eb2..60cd91b6 100644 --- a/RxExample/RxExample/Examples/OSX simple example/IntroductionExampleViewController.swift +++ b/RxExample/RxExample/Examples/OSX simple example/IntroductionExampleViewController.swift @@ -73,7 +73,7 @@ class IntroductionExampleViewController : ViewController { disposeButton.rx_tap .subscribeNext { [weak self] _ in print("Unbind everything") - self.disposeBag = DisposeBag() + self?.disposeBag = DisposeBag() } .addDisposableTo(disposeBag) }