* @private
(descriptors, chart, hook, args)
| 57 | * @private |
| 58 | */ |
| 59 | _notify(descriptors, chart, hook, args) { |
| 60 | args = args || {}; |
| 61 | for (const descriptor of descriptors) { |
| 62 | const plugin = descriptor.plugin; |
| 63 | const method = plugin[hook]; |
| 64 | const params = [chart, args, descriptor.options]; |
| 65 | if (callCallback(method, params, plugin) === false && args.cancelable) { |
| 66 | return false; |
| 67 | } |
| 68 | } |
| 69 | |
| 70 | return true; |
| 71 | } |
| 72 | |
| 73 | invalidate() { |
| 74 | // When plugins are registered, there is the possibility of a double |
no outgoing calls
no test coverage detected