Commit a84df93a authored by Jidong Chen's avatar Jidong Chen

Demo "animated"

parent d4fd4eda
...@@ -136,8 +136,12 @@ ...@@ -136,8 +136,12 @@
exts:(NSDictionary *)exts exts:(NSDictionary *)exts
completion:(void (^)(BOOL))completion completion:(void (^)(BOOL))completion
{ {
BOOL animated = YES;
if([exts[@"animated"] boolValue]){
animated = [exts[@"animated"] boolValue];
}
[self.platform closePage:uid [self.platform closePage:uid
animated:[exts[@"animated"] boolValue] animated:animated
params:exts[@"params"] params:exts[@"params"]
completion:completion]; completion:completion];
} }
...@@ -148,9 +152,14 @@ ...@@ -148,9 +152,14 @@
reult:(void (^)(NSDictionary *))resultCallback reult:(void (^)(NSDictionary *))resultCallback
completion:(void (^)(BOOL))completion completion:(void (^)(BOOL))completion
{ {
BOOL animated = YES;
if([exts[@"animated"] boolValue]){
animated = [exts[@"animated"] boolValue];
}
[self.platform openPage:url [self.platform openPage:url
params:urlParams params:urlParams
animated:[exts[@"animated"] boolValue] animated:animated
completion:completion]; completion:completion];
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment