Skip to content

Commit 4e4a98f

Browse files
committed
fix block self
1 parent 454a1e7 commit 4e4a98f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

iOSProject/iOSProject/Classes/LMJBase/BaseControllers/LMJWebViewController.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ - (void)viewDidLoad {
6767

6868
[self.webView addObserverBlockForKeyPath:LMJKeyPath(self.webView, title) block:^(id _Nonnull obj, id _Nullable oldVal, id _Nullable newVal) {
6969

70-
if (!LMJIsEmpty(newVal) && [newVal isKindOfClass:[NSString class]] && [self webViewController:self webViewIsNeedAutoTitle:self.webView]) {
70+
if (!LMJIsEmpty(newVal) && [newVal isKindOfClass:[NSString class]] && [weakself webViewController:weakself webViewIsNeedAutoTitle:weakself.webView]) {
7171
weakself.title = newVal;
7272
}
7373

0 commit comments

Comments
 (0)