(scope, options)
| 795 | } |
| 796 | |
| 797 | expandCallbacks (scope, options) { |
| 798 | const callback = this.defaults.callbacks[scope] |
| 799 | Object.entries(options).forEach(([key, value]) => { |
| 800 | if (value === Object(value)) { |
| 801 | options[key] = this.expandCallbacks(scope, value) |
| 802 | } else if (typeof value === 'string' && |
| 803 | typeof callback === 'object' && |
| 804 | typeof callback[value] === 'function') { |
| 805 | options[key] = callback[value].bind(null, this) |
| 806 | } |
| 807 | }) |
| 808 | return options |
| 809 | } |
| 810 | |
| 811 | showValidationErrors (errors) { |
| 812 |
no outgoing calls
no test coverage detected