* Updates dataset at index unless a plugin returns `false` to the `beforeDatasetUpdate` * hook, in which case, plugins will not be called on `afterDatasetUpdate`. * @private
(index, mode)
| 671 | * @private |
| 672 | */ |
| 673 | _updateDataset(index, mode) { |
| 674 | const meta = this.getDatasetMeta(index); |
| 675 | const args = {meta, index, mode, cancelable: true}; |
| 676 | |
| 677 | if (this.notifyPlugins('beforeDatasetUpdate', args) === false) { |
| 678 | return; |
| 679 | } |
| 680 | |
| 681 | meta.controller._update(mode); |
| 682 | |
| 683 | args.cancelable = false; |
| 684 | this.notifyPlugins('afterDatasetUpdate', args); |
| 685 | } |
| 686 | |
| 687 | render() { |
| 688 | if (this.notifyPlugins('beforeRender', {cancelable: true}) === false) { |
no test coverage detected