You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by gu...@apache.org on 2017/10/16 02:39:57 UTC

incubator-weex git commit: change current index

Repository: incubator-weex
Updated Branches:
  refs/heads/master 223f361ff -> f362cfae9


change current index


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

Branch: refs/heads/master
Commit: f362cfae94cbeadd49ef3a4492fb3233fad17621
Parents: 223f361
Author: Xiayun <xi...@163.com>
Authored: Fri Oct 13 19:56:09 2017 +0800
Committer: Xiayun <xi...@163.com>
Committed: Fri Oct 13 19:56:09 2017 +0800

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


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/f362cfae/ios/sdk/WeexSDK/Sources/Component/WXCycleSliderComponent.m
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Component/WXCycleSliderComponent.m b/ios/sdk/WeexSDK/Sources/Component/WXCycleSliderComponent.m
index 48eda1a..929dd1a 100644
--- a/ios/sdk/WeexSDK/Sources/Component/WXCycleSliderComponent.m
+++ b/ios/sdk/WeexSDK/Sources/Component/WXCycleSliderComponent.m
@@ -662,8 +662,8 @@ typedef NS_ENUM(NSInteger, Direction) {
     
     if (_sliderChangeEvent) {
         [self fireEvent:@"change" params:@{@"index":@(index)} domChanges:@{@"attrs": @{@"index": @(index)}}];
-        self.currentIndex = index;
     }
+    self.currentIndex = index;
 }
 
 - (void)scrollViewWillBeginDragging:(UIScrollView *)scrollView