Fix: Make sure all prepareForReuse() implementations call super

This commit is contained in:
Roopesh Chander 2018-10-29 02:26:40 +05:30
parent 6b6a4d3f17
commit 1e7fa2390d
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
} }