(vm, watch)
| 2843 | } |
| 2844 | |
| 2845 | function initWatch (vm, watch) { |
| 2846 | for (var key in watch) { |
| 2847 | var handler = watch[key]; |
| 2848 | if (Array.isArray(handler)) { |
| 2849 | for (var i = 0; i < handler.length; i++) { |
| 2850 | createWatcher(vm, key, handler[i]); |
| 2851 | } |
| 2852 | } else { |
| 2853 | createWatcher(vm, key, handler); |
| 2854 | } |
| 2855 | } |
| 2856 | } |
| 2857 | |
| 2858 | function createWatcher (vm, key, handler) { |
| 2859 | var options; |
no test coverage detected