(value)
| 729 | * collect dependencies and dispatches updates. |
| 730 | */ |
| 731 | var Observer = function Observer (value) { |
| 732 | this.value = value; |
| 733 | this.dep = new Dep(); |
| 734 | this.vmCount = 0; |
| 735 | def(value, '__ob__', this); |
| 736 | if (Array.isArray(value)) { |
| 737 | var augment = hasProto |
| 738 | ? protoAugment |
| 739 | : copyAugment; |
| 740 | augment(value, arrayMethods, arrayKeys); |
| 741 | this.observeArray(value); |
| 742 | } else { |
| 743 | this.walk(value); |
| 744 | } |
| 745 | }; |
| 746 | |
| 747 | /** |
| 748 | * Walk through each property and convert them into |