(opts)
| 3938 | } |
| 3939 | |
| 3940 | function normalize(opts) { |
| 3941 | if (opts.view && !opts.filter) { |
| 3942 | opts.filter = '_view'; |
| 3943 | } |
| 3944 | |
| 3945 | if (opts.selector && !opts.filter) { |
| 3946 | opts.filter = '_selector'; |
| 3947 | } |
| 3948 | |
| 3949 | if (opts.filter && typeof opts.filter === 'string') { |
| 3950 | if (opts.filter === '_view') { |
| 3951 | opts.view = normalizeDesignDocFunctionName(opts.view); |
| 3952 | } else { |
| 3953 | opts.filter = normalizeDesignDocFunctionName(opts.filter); |
| 3954 | } |
| 3955 | } |
| 3956 | } |
| 3957 | |
| 3958 | function shouldFilter(changesHandler, opts) { |
| 3959 | return opts.filter && typeof opts.filter === 'string' && |
nothing calls this directly
no test coverage detected
searching dependent graphs…