You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by kf...@apache.org on 2017/07/24 09:40:13 UTC
[3/4] incubator-weex git commit: + [ios] update Protection code
+ [ios] update Protection code
Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/1b7c25b6
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/1b7c25b6
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/1b7c25b6
Branch: refs/heads/0.15-dev
Commit: 1b7c25b694b1b2bcad9ee5864cde4ca54d34f267
Parents: 8c1bd67
Author: 齐山 <su...@163.com>
Authored: Wed Jul 19 16:14:18 2017 +0800
Committer: 齐山 <su...@163.com>
Committed: Wed Jul 19 16:14:18 2017 +0800
----------------------------------------------------------------------
ios/sdk/WeexSDK/Sources/Module/WXAnimationModule.m | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/1b7c25b6/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 502cb31..ff55ee2 100644
--- a/ios/sdk/WeexSDK/Sources/Module/WXAnimationModule.m
+++ b/ios/sdk/WeexSDK/Sources/Module/WXAnimationModule.m
@@ -85,15 +85,14 @@
- (void)animationDidStart:(CAAnimation *)anim
{
- if (!_animationInfo.target || ![_animationInfo.target isViewLoaded]) {
- return;
- }
-
[self applyTransform];
}
-(void)applyTransform
{
+ if (!_animationInfo.target || ![_animationInfo.target isViewLoaded]) {
+ return;
+ }
if ([_animationInfo.propertyName hasPrefix:@"transform"]) {
WXTransform *transform = _animationInfo.target->_transform;
[transform applyTransformForView:_animationInfo.target.view];