remove extra block
This commit is contained in:
parent
df67ded57b
commit
8d3a6852cd
@ -73,10 +73,8 @@ import Foundation
|
|||||||
}
|
}
|
||||||
|
|
||||||
public func entryIsValid(_ textfield: MFTextField?) {
|
public func entryIsValid(_ textfield: MFTextField?) {
|
||||||
DispatchQueue.main.async {
|
|
||||||
self.enableByValidation()
|
|
||||||
}
|
|
||||||
MVMCoreDispatchUtility.performBlock(onMainThread: {
|
MVMCoreDispatchUtility.performBlock(onMainThread: {
|
||||||
|
self.enableByValidation()
|
||||||
if let delegate = self.delegate as? MFTextFieldDelegate {
|
if let delegate = self.delegate as? MFTextFieldDelegate {
|
||||||
delegate.entryIsValid?(textfield)
|
delegate.entryIsValid?(textfield)
|
||||||
}
|
}
|
||||||
@ -84,10 +82,8 @@ import Foundation
|
|||||||
}
|
}
|
||||||
|
|
||||||
public func entryIsInvalid(_ textfield: MFTextField?) {
|
public func entryIsInvalid(_ textfield: MFTextField?) {
|
||||||
DispatchQueue.main.async {
|
|
||||||
self.enableByValidation()
|
|
||||||
}
|
|
||||||
MVMCoreDispatchUtility.performBlock(onMainThread: {
|
MVMCoreDispatchUtility.performBlock(onMainThread: {
|
||||||
|
self.enableByValidation()
|
||||||
if let delegate = self.delegate as? MFTextFieldDelegate {
|
if let delegate = self.delegate as? MFTextFieldDelegate {
|
||||||
delegate.entryIsInvalid?(textfield)
|
delegate.entryIsInvalid?(textfield)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user