Skip to content

Commit 87b1d69

Browse files
committed
Removed all control events in dealloc.
1 parent 2b60c1c commit 87b1d69

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

components/Buttons/src/MDCButton.m

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -142,12 +142,7 @@ - (void)commonInit {
142142
}
143143

144144
- (void)dealloc {
145-
[self removeTarget:self
146-
action:@selector(touchDragEnter:forEvent:)
147-
forControlEvents:UIControlEventTouchDragEnter];
148-
[self removeTarget:self
149-
action:@selector(touchDragExit:forEvent:)
150-
forControlEvents:UIControlEventTouchDragExit];
145+
[self removeTarget:self action:NULL forControlEvents:UIControlEventAllEvents];
151146
}
152147

153148
- (void)setCustomTitleColor:(UIColor *)customTitleColor {

0 commit comments

Comments
 (0)