Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

* [ios] clear toast queue when instance disappear @notdanger #696

Merged
merged 3 commits into from
Sep 14, 2017

Conversation

acton393
Copy link
Member

No description provided.

@weex-bot
Copy link

weex-bot commented Sep 13, 2017

Warnings
⚠️ No Changelog changes!
⚠️ This PR modify SDK code without add/modify testcases.
⚠️ This PR should update related documents as well.

Generated by 🚫 dangerJS

@@ -378,7 +379,8 @@ - (void)destroyInstance
if(url.length > 0){
[WXPrerenderManager addGlobalTask:url callback:nil];
}

NSMutableArray * toastQueue = [[WXToastManager sharedManager] valueForKey:@"toastQueue"];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

toastQueue 会不会是空值?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Singleton method for sharedManager will initialize toastQueue as a mutableArray, here I just removeAllObject. In other side , if toastQueue is nil, sending message to nil value will take no effect.

@acton393 acton393 closed this Sep 14, 2017
@acton393 acton393 reopened this Sep 14, 2017
@gurisxie
Copy link
Contributor

has no question

@asfgit asfgit merged commit e44104a into apache:0.16-dev Sep 14, 2017
@acton393 acton393 deleted the ios-feature-modal-toast branch November 7, 2017 16:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants