Removed self where unnecessary
This commit is contained in:
parent
1de7618e5c
commit
82c76c6084
@ -26,12 +26,12 @@ public typealias ButtonBlock = (Button) -> Void
|
||||
|
||||
public func setWithActionMap(_ actionMap: [AnyHashable: Any]?, delegateObject: MVMCoreUIDelegateObject?, additionalData: [AnyHashable: Any]?) {
|
||||
self.actionMap = actionMap
|
||||
self.titleLabel?.numberOfLines = 0
|
||||
self.titleLabel?.lineBreakMode = .byWordWrapping
|
||||
titleLabel?.numberOfLines = 0
|
||||
titleLabel?.lineBreakMode = .byWordWrapping
|
||||
|
||||
buttonDelegate = delegateObject?.buttonDelegate
|
||||
|
||||
self.addBlock({ [weak self] (sender) in
|
||||
addBlock({ [weak self] (sender) in
|
||||
guard let self = self,
|
||||
let performAction = self.buttonDelegate?.button?(self, shouldPerformActionWithMap: actionMap, additionalData: additionalData),
|
||||
performAction else { return }
|
||||
|
||||
Loading…
Reference in New Issue
Block a user