(vm, watch)
| 2837 | } |
| 2838 | |
| 2839 | function initWatch (vm, watch) { |
| 2840 | for (var key in watch) { |
| 2841 | var handler = watch[key]; |
| 2842 | if (Array.isArray(handler)) { |
| 2843 | for (var i = 0; i < handler.length; i++) { |
| 2844 | createWatcher(vm, key, handler[i]); |
| 2845 | } |
| 2846 | } else { |
| 2847 | createWatcher(vm, key, handler); |
| 2848 | } |
| 2849 | } |
| 2850 | } |
| 2851 | |
| 2852 | function createWatcher (vm, key, handler) { |
| 2853 | var options; |
no test coverage detected