MCPcopy Index your code
hub / github.com/microsoft/SandDance / comparePropValues

Function comparePropValues

docs/app/js/sanddance-app.js:87687–87696  ·  view source on GitHub ↗
(newProp, oldProp, propType)

Source from the content-addressed store, hash-verified

87685 return null;
87686}
87687function comparePropValues(newProp, oldProp, propType) {
87688 var equal = propType && propType.equal;
87689 if (equal && !equal(newProp, oldProp, propType)) return "changed deeply";
87690 if (!equal) {
87691 equal = newProp && oldProp && newProp.equals;
87692 if (equal && !equal.call(newProp, oldProp)) return "changed deeply";
87693 }
87694 if (!equal && oldProp !== newProp) return "changed shallowly";
87695 return null;
87696}
87697function diffDataProps(props, oldProps) {
87698 if (oldProps === null) return "oldProps is null, initial diff";
87699 var dataChanged = null;

Callers 2

diffTransitionsFunction · 0.70
comparePropsFunction · 0.70

Calls 1

equalFunction · 0.70

Tested by

no test coverage detected