getUnion
function
Returns the union of the cached and needed data.
connection.getUnion(set, diff, neededData, cachedData)
Uses can-set.getUnion to merge the two sets.
Parameters
- set
{Set}:The set requested.
- diff
{Object}:The result of getDiff.
- neededData
{ListData}:The data loaded from the base connection.
- cachedData
{ListData}:The data loaded from the cacheConnection.