(value)
| 721 | * collect dependencies and dispatches updates. |
| 722 | */ |
| 723 | var Observer = function Observer (value) { |
| 724 | this.value = value; |
| 725 | this.dep = new Dep(); |
| 726 | this.vmCount = 0; |
| 727 | def(value, '__ob__', this); |
| 728 | if (Array.isArray(value)) { |
| 729 | var augment = hasProto |
| 730 | ? protoAugment |
| 731 | : copyAugment; |
| 732 | augment(value, arrayMethods, arrayKeys); |
| 733 | this.observeArray(value); |
| 734 | } else { |
| 735 | this.walk(value); |
| 736 | } |
| 737 | }; |
| 738 | |
| 739 | /** |
| 740 | * Walk through each property and convert them into |