(v, ctx)
| 2434 | **/ |
| 2435 | ctor.required = function (context) { |
| 2436 | var valFn = function (v, ctx) { |
| 2437 | if (typeof v === "string") { |
| 2438 | if (ctx && ctx.allowEmptyStrings) return true; |
| 2439 | return v.length > 0; |
| 2440 | } else { |
| 2441 | return v != null; |
| 2442 | } |
| 2443 | }; |
| 2444 | return new ctor("required", valFn, context); |
| 2445 | }; |
| 2446 |
nothing calls this directly
no test coverage detected