cx 21.11.2 → 21.12.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/data.js CHANGED
@@ -1364,6 +1364,7 @@ function createStructuredSelector(selector, constants) {
1364
1364
  var memoizedSelectors = {};
1365
1365
  keys.forEach(function(key) {
1366
1366
  memoizedSelectors[key] = selector[key].memoize ? selector[key].memoize() : selector[key];
1367
+ lastResult[key] = undefined;
1367
1368
  });
1368
1369
  return function(data) {
1369
1370
  var result = lastResult,
@@ -1955,7 +1956,7 @@ function getComparer(sorters, dataAccessor, comparer) {
1955
1956
  }
1956
1957
  : selector,
1957
1958
  factor: s.direction && s.direction[0].toLowerCase() == "d" ? -1 : 1,
1958
- compare: s.comparer || comparer || defaultCompare
1959
+ compare: s.comparer || s.compare || comparer || defaultCompare
1959
1960
  };
1960
1961
  });
1961
1962
  return function(a, b) {