Skip to content

Commit

Permalink
Merge pull request #3303 from BlainHamon/timob-11544_3_0_X
Browse files Browse the repository at this point in the history
TIMOB-11544 Windows should remember themselves early, remember themselves often.
  • Loading branch information
vishalduggal committed Oct 19, 2012
2 parents 782685e + 7cb9bb3 commit 2142cc9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions iphone/Classes/TiUITabProxy.m
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,8 @@ -(void)open:(NSArray*)args
// since the didShow notification above happens on both a push and pop, i need to keep a flag
// to let me know which state i'm in so i only close the current window on a pop
opening = YES;
// Because the window may be going out of scope soon, and that rememberself is a bit, not a counter, we can safely protect here.
[window rememberSelf];
[window setParentOrientationController:self];
// TODO: Slap patch. Views, when opening/added, should check parent visibility (and parent/parent visibility, if possible)
[window parentWillShow];
Expand Down

0 comments on commit 2142cc9

Please sign in to comment.