Skip to content

Commit

Permalink
differentiate between removing listener entries
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Haynie committed Jul 26, 2010
1 parent 5404f3b commit 55656bc
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions iphone/Classes/AppModule.m
Expand Up @@ -237,8 +237,17 @@ -(void)willShutdownContext:(NSNotification*)note
{
if ([entry context] == context)
{
[found addObject:[NSArray
arrayWithObjects:[entry type],[entry listener],nil]];
id listener = [entry listener];
if ([listener isKindOfClass:[KrollCallback class]])
{
[found addObject:[NSArray
arrayWithObjects:((KrollCallback*)listener).type,listener,nil]];
}
else
{
[found addObject:[NSArray
arrayWithObjects:[entry type],listener,nil]];
}
}
}
}
Expand Down

0 comments on commit 55656bc

Please sign in to comment.