...
|
...
|
@@ -38,11 +38,11 @@ NSString * const YHNative_Messenger = @"YHNativeMessage"; |
|
|
|
|
|
- (void)forwardInvocation:(NSInvocation *)anInvocation
|
|
|
{
|
|
|
NSString *selector = NSStringFromSelector(anInvocation.selector);
|
|
|
|
|
|
NSDictionary *message = @{ @"event": selector };
|
|
|
|
|
|
[self handleMessage:message];
|
|
|
if ([YHNative instancesRespondToSelector:anInvocation.selector]) {
|
|
|
[super forwardInvocation:anInvocation];
|
|
|
} else {
|
|
|
[self handleMessage:self.originalParams];
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
...
|
...
|
|