Fix: Make sure all prepareForReuse() implementations call super
Signed-off-by: Roopesh Chander <roop@roopc.net>
This commit is contained in:
parent
0396a3550c
commit
7f77d87e27
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue