MCPcopy Create free account
hub / github.com/EricSimons/ionic-course / parentValueWatch

Function parentValueWatch

code/songhop/www/lib/angular/angular.js:7643–7655  ·  view source on GitHub ↗
(parentValue)

Source from the content-addressed store, hash-verified

7641 };
7642 lastValue = isolateBindingContext[scopeName] = parentGet(scope);
7643 var parentValueWatch = function parentValueWatch(parentValue) {
7644 if (!compare(parentValue, isolateBindingContext[scopeName])) {
7645 // we are out of sync and need to copy
7646 if (!compare(parentValue, lastValue)) {
7647 // parent changed and it has precedence
7648 isolateBindingContext[scopeName] = parentValue;
7649 } else {
7650 // if the parent can be assigned then do so
7651 parentSet(scope, parentValue = isolateBindingContext[scopeName]);
7652 }
7653 }
7654 return lastValue = parentValue;
7655 };
7656 parentValueWatch.$stateful = true;
7657 var unwatch;
7658 if (definition.collection) {

Callers

nothing calls this directly

Calls 1

compareFunction · 0.70

Tested by

no test coverage detected