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

Commit

Permalink
* [iOS] change component block sync to async
Browse files Browse the repository at this point in the history
  • Loading branch information
doumafang authored and YorkShen committed Aug 2, 2018
1 parent 538e2f9 commit 7dd54bb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ - (void)closest:(NSString *)virtalElementInfo cssSelector:(NSString *)cssSelecto
{
if(callback)
{
WXPerformBlockSyncOnComponentThread(^{
WXPerformBlockOnComponentThread(^{
WXComponent *component = [self.weexInstance.componentManager componentForRef:[self _refForVirtalElementInfo:virtalElementInfo]];
if (component) {
callback([self _closestComponentForCSSSelector:cssSelector component:component]);
Expand Down

0 comments on commit 7dd54bb

Please sign in to comment.