(opts)
| 4098 | } |
| 4099 | |
| 4100 | function normalize(opts) { |
| 4101 | if (opts.view && !opts.filter) { |
| 4102 | opts.filter = '_view'; |
| 4103 | } |
| 4104 | |
| 4105 | if (opts.selector && !opts.filter) { |
| 4106 | opts.filter = '_selector'; |
| 4107 | } |
| 4108 | |
| 4109 | if (opts.filter && typeof opts.filter === 'string') { |
| 4110 | if (opts.filter === '_view') { |
| 4111 | opts.view = normalizeDesignDocFunctionName(opts.view); |
| 4112 | } else { |
| 4113 | opts.filter = normalizeDesignDocFunctionName(opts.filter); |
| 4114 | } |
| 4115 | } |
| 4116 | } |
| 4117 | |
| 4118 | function shouldFilter(changesHandler, opts) { |
| 4119 | return opts.filter && typeof opts.filter === 'string' && |
nothing calls this directly
no test coverage detected
searching dependent graphs…