You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by ac...@apache.org on 2018/05/11 03:16:52 UTC

incubator-weex git commit: [WEEX-345] [iOS] fix animationModule with needLayout bug with nil property

Repository: incubator-weex
Updated Branches:
  refs/heads/master 97af3ab28 -> 792ac344e


[WEEX-345] [iOS] fix animationModule with needLayout bug with nil property


Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/792ac344
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/792ac344
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/792ac344

Branch: refs/heads/master
Commit: 792ac344e38b131f7f819f984488cf62bc82e012
Parents: 97af3ab
Author: doumafang <do...@gmail.com>
Authored: Fri May 11 10:52:58 2018 +0800
Committer: doumafang <do...@gmail.com>
Committed: Fri May 11 10:52:58 2018 +0800

----------------------------------------------------------------------
 ios/sdk/WeexSDK/Sources/Module/WXAnimationModule.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/792ac344/ios/sdk/WeexSDK/Sources/Module/WXAnimationModule.m
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Module/WXAnimationModule.m b/ios/sdk/WeexSDK/Sources/Module/WXAnimationModule.m
index 7af5506..c8afd2b 100644
--- a/ios/sdk/WeexSDK/Sources/Module/WXAnimationModule.m
+++ b/ios/sdk/WeexSDK/Sources/Module/WXAnimationModule.m
@@ -309,7 +309,7 @@ WX_EXPORT_METHOD(@selector(transition:args:callback:))
 - (void)transitionWithArgs:(NSDictionary *)args withProperty:(NSString *)property target:(WXComponent *)target
 {
     [_transition.filterStyles setObject:args[@"styles"][property] forKey:property];
-    [_transition.oldFilterStyles setObject:target.styles[property] ?:0 forKey:property];
+    [_transition.oldFilterStyles setObject:target.styles[property] ?:@0 forKey:property];
     [target _modifyStyles:@{property:args[@"styles"][property]}];
     [_transitionDic setObject:@([args[@"duration"] doubleValue]) forKey:kWXTransitionDuration];
     [_transitionDic setObject:@([args[@"delay"] doubleValue]) forKey:kWXTransitionDelay];