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