Removed self where unnecessary

This commit is contained in:
Robinson, Blake 2019-12-19 10:37:57 -05:00
parent 1de7618e5c
commit 82c76c6084

View File

@ -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 }