Fix: Make sure all prepareForReuse() implementations call super

Signed-off-by: Roopesh Chander <roop@roopc.net>
This commit is contained in:
Roopesh Chander 2018-10-29 02:26:40 +05:30
parent 0396a3550c
commit 7f77d87e27
2 changed files with 4 additions and 0 deletions

View File

@ -297,6 +297,7 @@ class TunnelDetailTableViewStatusCell: UITableViewCell {
} }
override func prepareForReuse() { override func prepareForReuse() {
super.prepareForReuse()
reset() reset()
} }
} }
@ -358,6 +359,7 @@ class TunnelDetailTableViewButtonCell: UITableViewCell {
} }
override func prepareForReuse() { override func prepareForReuse() {
super.prepareForReuse()
buttonText = "" buttonText = ""
onTapped = nil onTapped = nil
} }

View File

@ -453,6 +453,7 @@ class TunnelEditTableViewButtonCell: UITableViewCell {
} }
override func prepareForReuse() { override func prepareForReuse() {
super.prepareForReuse()
buttonText = "" buttonText = ""
onTapped = nil onTapped = nil
} }
@ -482,6 +483,7 @@ class TunnelEditTableViewSwitchCell: UITableViewCell {
} }
override func prepareForReuse() { override func prepareForReuse() {
super.prepareForReuse()
message = "" message = ""
isOn = false isOn = false
} }