model reuse

This commit is contained in:
Kevin G Christiano 2020-01-24 10:38:38 -05:00
parent 02107a3498
commit f43e018e21

View File

@ -118,7 +118,7 @@ import UIKit
//--------------------------------------------------
/// Holds reference to delegateObject to inform molecular tableView of an update.
var delegateObject: MVMCoreUIDelegateObject?
weak var delegateObject: MVMCoreUIDelegateObject?
//--------------------------------------------------
// MARK: - Lifecycle
@ -271,17 +271,9 @@ import UIKit
layoutIfNeeded()
}
}
//--------------------------------------------------
// MARK: - MVMCoreUIMoleculeViewProtocol
//--------------------------------------------------
open override func setWithModel(_ model: MoleculeModelProtocol?, _ delegateObject: MVMCoreUIDelegateObject?, _ additionalData: [AnyHashable: Any]?) {
super.setWithModel(model, delegateObject, additionalData)
self.delegateObject = delegateObject
}
}
// MARK:- MVMCoreUIMoleculeViewProtocol
extension EntryFieldContainer {
override open func setWithJSON(_ json: [AnyHashable: Any]?, delegateObject: MVMCoreUIDelegateObject?, additionalData: [AnyHashable: Any]?) {