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