Skip to content

Commit

Permalink
* [ios] fix remove Observer crash
Browse files Browse the repository at this point in the history
  • Loading branch information
acton393 committed Sep 8, 2016
1 parent 8601304 commit 46fcbc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/sdk/WeexSDK/Sources/Module/WXGlobalEventModule.m
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ - (void)addEventListener:(NSString *)event callback:(WXModuleKeepAliveCallback)c
- (void)removeEventListener:(NSString *)event
{
[_eventCallback removeObjectForKey:event];
[[NSNotificationCenter defaultCenter] removeObserver:weexInstance forKeyPath:event];
[[NSNotificationCenter defaultCenter] removeObserver:self];
}

- (void)fireGlobalEvent:(NSNotification *)notification
Expand Down

0 comments on commit 46fcbc5

Please sign in to comment.