From 039b6f03dd2e2058ff6a1b156876c3812d2475b9 Mon Sep 17 00:00:00 2001 From: Max Wang Date: Thu, 28 Mar 2019 18:42:16 -0700 Subject: [PATCH] Fix dealloc on bg (#1410) * fix SIMULATE_WEB_RESPONSE not imported #449 * Fix to make rangeMode update in right time * remove uncessary assert * Fix collection cell editing bug for iOS 9 & 10 * Revert "Fix collection cell editing bug for iOS 9 & 10" This reverts commit 06e18a10596622ff8a68835c95a23986d7bf61ea. * Fix dealloc long gesture in background --- Source/ASTextNode.mm | 8 -------- Source/ASTextNode2.mm | 6 ------ 2 files changed, 14 deletions(-) diff --git a/Source/ASTextNode.mm b/Source/ASTextNode.mm index e872a0929..71138045e 100644 --- a/Source/ASTextNode.mm +++ b/Source/ASTextNode.mm @@ -261,14 +261,6 @@ - (instancetype)init - (void)dealloc { CGColorRelease(_shadowColor); - - // TODO: This may not be necessary post-iOS-9 when most UIKit assign APIs - // were changed to weak. - if (_longPressGestureRecognizer) { - _longPressGestureRecognizer.delegate = nil; - [_longPressGestureRecognizer removeTarget:nil action:NULL]; - [self.view removeGestureRecognizer:_longPressGestureRecognizer]; - } } #pragma mark - Description diff --git a/Source/ASTextNode2.mm b/Source/ASTextNode2.mm index 7fa844ba1..2eb0ad5aa 100644 --- a/Source/ASTextNode2.mm +++ b/Source/ASTextNode2.mm @@ -227,12 +227,6 @@ - (instancetype)init - (void)dealloc { CGColorRelease(_shadowColor); - - if (_longPressGestureRecognizer) { - _longPressGestureRecognizer.delegate = nil; - [_longPressGestureRecognizer removeTarget:nil action:NULL]; - [self.view removeGestureRecognizer:_longPressGestureRecognizer]; - } } #pragma mark - Description