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