Skip to content

Commit

Permalink
Merge pull request #2929 from vishalduggal/timob-10796
Browse files Browse the repository at this point in the history
[TIMOB-10796] Ensure activeTab is set to focused on early return
  • Loading branch information
srahim committed Sep 13, 2012
2 parents 8cf42c3 + 8c40b23 commit 62fb56d
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 62fb56d

Please sign in to comment.