Browse files

fixing bug where we were not removing observer at correct time

  • Loading branch information...
1 parent 070a89f commit 4494ce2b1a594b5492671246ab3d1dd1b2005eba @gotosleep committed Mar 19, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 JASidePanels/Source/JASidePanelController.m
View
1 JASidePanels/Source/JASidePanelController.m
@@ -246,6 +246,7 @@ - (void)_sizeSidePanels {
- (void)setCenterPanel:(UIViewController *)centerPanel {
UIViewController *previous = _centerPanel;
if (centerPanel != _centerPanel) {
+ [self.gestureController removeObserver:self forKeyPath:@"view"];
[_centerPanel removeObserver:self forKeyPath:@"viewControllers"];
_centerPanel = centerPanel;
[_centerPanel addObserver:self forKeyPath:@"viewControllers" options:0 context:nil];

0 comments on commit 4494ce2

Please sign in to comment.