Skip to content

Commit

Permalink
issue-965: removed Button's duplicate prepare call within the initial…
Browse files Browse the repository at this point in the history
…izer
  • Loading branch information
Daniel Dahan committed Nov 15, 2017
1 parent 9ad4b3d commit 840dbdd
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Sources/iOS/Button.swift
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,6 @@ open class Button: UIButton, Pulseable, PulseableLayer {
public convenience init(image: UIImage?, tintColor: UIColor = Color.blue.base) {
self.init()
prepare(with: image, tintColor: tintColor)
prepare()
}

/**
Expand All @@ -212,7 +211,6 @@ open class Button: UIButton, Pulseable, PulseableLayer {
public convenience init(title: String?, titleColor: UIColor = Color.blue.base) {
self.init()
prepare(with: title, titleColor: titleColor)
prepare()
}

open override func layoutSubviews() {
Expand Down

0 comments on commit 840dbdd

Please sign in to comment.