Commit 840dbdd3 by Daniel Dahan

issue-965: removed Button's duplicate prepare call within the initializer

parent 9ad4b3dd
...@@ -201,7 +201,6 @@ open class Button: UIButton, Pulseable, PulseableLayer { ...@@ -201,7 +201,6 @@ open class Button: UIButton, Pulseable, PulseableLayer {
public convenience init(image: UIImage?, tintColor: UIColor = Color.blue.base) { public convenience init(image: UIImage?, tintColor: UIColor = Color.blue.base) {
self.init() self.init()
prepare(with: image, tintColor: tintColor) prepare(with: image, tintColor: tintColor)
prepare()
} }
/** /**
...@@ -212,7 +211,6 @@ open class Button: UIButton, Pulseable, PulseableLayer { ...@@ -212,7 +211,6 @@ open class Button: UIButton, Pulseable, PulseableLayer {
public convenience init(title: String?, titleColor: UIColor = Color.blue.base) { public convenience init(title: String?, titleColor: UIColor = Color.blue.base) {
self.init() self.init()
prepare(with: title, titleColor: titleColor) prepare(with: title, titleColor: titleColor)
prepare()
} }
open override func layoutSubviews() { open override func layoutSubviews() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment