Skip to content

Commit

Permalink
Merge pull request #3050 from vishalduggal/timob-10796-21X
Browse files Browse the repository at this point in the history
[TIMOB-10796] (2_1_X) Ensure activeTab is set to focused on early return
  • Loading branch information
srahim committed Sep 25, 2012
2 parents 2100c17 + 27f09c6 commit 9e30f3d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions iphone/Classes/TiUITabGroup.m
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ - (void)handleDidShowTab:(TiUITabProxy *)newFocus
{
// Do nothing if no tabs are being focused or blurred (or the window is opening)
if ((focused == nil && newFocus == nil) || (focused == newFocus)) {
//TIMOB-10796. Ensure activeTab is set to focused on early return
if (focused != nil) {
[self.proxy replaceValue:focused forKey:@"activeTab" notification:NO];
}
return;
}

Expand Down

0 comments on commit 9e30f3d

Please sign in to comment.