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 2017/06/19 02:59:46 UTC

incubator-weex git commit: * [ios] fix crash about removing gesture crash

Repository: incubator-weex
Updated Branches:
  refs/heads/0.14-dev b006e16c7 -> 890a589a7


* [ios] fix crash about removing gesture crash


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

Branch: refs/heads/0.14-dev
Commit: 890a589a72a3e7278c2719670e531b6274fa967e
Parents: b006e16
Author: acton393 <zh...@gmail.com>
Authored: Mon Jun 19 10:33:39 2017 +0800
Committer: acton393 <zh...@gmail.com>
Committed: Mon Jun 19 10:33:39 2017 +0800

----------------------------------------------------------------------
 ios/sdk/WeexSDK/Sources/Events/WXComponent+Events.m | 8 --------
 1 file changed, 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/890a589a/ios/sdk/WeexSDK/Sources/Events/WXComponent+Events.m
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Events/WXComponent+Events.m b/ios/sdk/WeexSDK/Sources/Events/WXComponent+Events.m
index 98a27b7..a40144a 100644
--- a/ios/sdk/WeexSDK/Sources/Events/WXComponent+Events.m
+++ b/ios/sdk/WeexSDK/Sources/Events/WXComponent+Events.m
@@ -270,8 +270,6 @@ if ([removeEventName isEqualToString:@#eventName]) {\
 - (void)removeClickEvent
 {
     if (_tapGesture) {
-        [_tapGesture removeTarget:self action:@selector(onClick:)];
-        [self.view removeGestureRecognizer:_tapGesture];
         _tapGesture.delegate = nil;
         _tapGesture = nil;
     }
@@ -343,8 +341,6 @@ if ([removeEventName isEqualToString:@#eventName]) {\
     }
   
     for (UISwipeGestureRecognizer *recognizer in _swipeGestures) {
-        [recognizer removeTarget:self action:@selector(onSwipe:)];
-        [self.view removeGestureRecognizer:recognizer];
         recognizer.delegate = nil;
     }
     
@@ -398,8 +394,6 @@ if ([removeEventName isEqualToString:@#eventName]) {\
 - (void)removeLongPressEvent
 {
     if (_longPressGesture) {
-        [_longPressGesture removeTarget:self action:@selector(onLongPress:)];
-        [self.view removeGestureRecognizer:_longPressGesture];
         _longPressGesture.delegate = nil;
         _longPressGesture = nil;
     }
@@ -546,8 +540,6 @@ if ([removeEventName isEqualToString:@#eventName]) {\
         && !_listenPanStart && !_listenPanMove && !_listenPanEnd
         && !_listenHorizontalPan && !_listenVerticalPan
         ) {
-        [_panGesture removeTarget:self action:@selector(onPan:)];
-        [self.view removeGestureRecognizer:_panGesture];
         _panGesture.delegate = nil;
         _panGesture = nil;
     }