Skip to content

Commit

Permalink
finally fix memory issues
Browse files Browse the repository at this point in the history
  • Loading branch information
gnatok committed Jul 18, 2016
1 parent 5802cde commit abe8486
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class SecondModuleModuleConfigurator {
private func configure(viewController: SecondModuleViewController) {

let router = SecondModuleRouter()
router.transitionHandler = viewController

let presenter = SecondModulePresenter()
presenter.view = viewController
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
import ViperMcFlurry

class SecondModuleRouter: NSObject, SecondModuleRouterInput {
var transitionHandler: RamblerViperModuleTransitionHandlerProtocol!
weak var transitionHandler: RamblerViperModuleTransitionHandlerProtocol!
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class ThirdModuleModuleConfigurator {
private func configure(viewController: ThirdModuleViewController) {

let router = ThirdModuleRouter()
router.transitionHandler = viewController

let presenter = ThirdModulePresenter()
presenter.view = viewController
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@

import ViperMcFlurry

class ThirdModuleRouter: ThirdModuleRouterInput { }
class ThirdModuleRouter: ThirdModuleRouterInput {
weak var transitionHandler: RamblerViperModuleTransitionHandlerProtocol!
}

0 comments on commit abe8486

Please sign in to comment.