|
@@ -79,7 +79,6 @@
|
79
|
79
|
# pragma mark - js events
|
80
|
80
|
|
81
|
81
|
-(void)onJavaScriptWillLoad {
|
82
|
|
- [self releaseBeforeJSReload];
|
83
|
82
|
[_store clean];
|
84
|
83
|
}
|
85
|
84
|
|
|
@@ -105,25 +104,4 @@
|
105
|
104
|
object:nil];
|
106
|
105
|
}
|
107
|
106
|
|
108
|
|
--(void)releaseBeforeJSReload {
|
109
|
|
-#ifdef DEBUG
|
110
|
|
-// if(![UIApplication.sharedApplication.delegate.window.rootViewController isKindOfClass:[RNNSplashScreen class]]) {
|
111
|
|
-// [self releaseBeforeJsReload:UIApplication.sharedApplication.delegate.window.rootViewController];
|
112
|
|
-// }
|
113
|
|
-#endif
|
114
|
|
-}
|
115
|
|
-
|
116
|
|
-//-(void)releaseBeforeJsReload:(UIViewController*)vc {
|
117
|
|
-// if(!vc) return;
|
118
|
|
-//
|
119
|
|
-// for (UIViewController* child in vc.childViewControllers) {
|
120
|
|
-// [self releaseBeforeJsReload:child];
|
121
|
|
-// }
|
122
|
|
-// [self releaseBeforeJsReload:vc.presentedViewController];
|
123
|
|
-//
|
124
|
|
-// [NSNotificationCenter.defaultCenter removeObserver:vc];
|
125
|
|
-// [NSNotificationCenter.defaultCenter removeObserver:vc.view];
|
126
|
|
-// vc.view = nil;
|
127
|
|
-//}
|
128
|
|
-
|
129
|
107
|
@end
|