| 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) { |