Metadata
- Source
- FLUID-6158
- Type
- Improvement
- Priority
- Major
- Status
- Closed
- Resolution
- Fixed
- Assignee
- Simon Bates
- Reporter
- Alan Harnum
- Created
2017-05-17T14:44:35.319-0400 - Updated
2018-02-16T13:37:08.646-0500 - Versions
- N/A
- Fixed Versions
- N/A
- Component
-
- Data Binder
Description
It has been identified that the NexusWebSocketBoundComponent has some useful functionality that should be extracted into Infusion core.
The relevant functions are at https://github.com/simonbates/nexus-client/blob/master/src/NexusWebSocketBoundComponent.js#L144-L193 - their moral purpose is to calculate the changes necessary to bring one model into consistency with another model.
Signature and function name of the extracted functionality will be as follows:
fluid.modelPairToChanges(value, oldValue, path) -> [Array of ChangeRequest]
The return value can then be passed to fluid.fireChanges or otherwise used.
Comments
-
Simon Bates commented
2017-06-12T16:12:12.678-0400 Pull request: https://github.com/fluid-project/infusion/pull/830
-
Simon Bates commented
2017-06-12T17:07:27.761-0400 Documentation pull request: https://github.com/fluid-project/infusion-docs/pull/122
-
Simon Bates commented
2017-07-13T15:34:39.581-0400 The code pull request has been merged:
https://github.com/fluid-project/infusion/commit/b3de71f688a3533a62fd32e4c3ba9283d41f3cda
-
Simon Bates commented
2018-02-16T13:35:12.915-0500 The documentation pull request has been merged also.