Skip to content

Commit

Permalink
Merge pull request #371 from hc2088/main
Browse files Browse the repository at this point in the history
修改onload异步调用问题
  • Loading branch information
Alzzzz authored Nov 24, 2023
2 parents 238ee39 + 7326a91 commit 0db9d52
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion fair/ios/Classes/FairDynamicJSPlugin/FairDartBridge.m
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ - (void)setDartListener {
return;
}
}
callback(@"success");
callback(@{@"status":@"success"});
}];
}
}
Expand Down
1 change: 1 addition & 0 deletions fair/lib/src/runtime/runtime_fair_delegate.dart
Original file line number Diff line number Diff line change
Expand Up @@ -121,5 +121,6 @@ abstract class RuntimeFairDelegate {

void dispose() {
runtime?.invokeMethod(pageName, 'onUnload', null);
runtime?.invokeMethod(pageName, 'releaseJS', null);
}
}

0 comments on commit 0db9d52

Please sign in to comment.