* 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)
| 746 | * @private |
| 747 | */ |
| 748 | _updateDataset(index, mode) { |
| 749 | const meta = this.getDatasetMeta(index); |
| 750 | const args = {meta, index, mode, cancelable: true}; |
| 751 | |
| 752 | if (this.notifyPlugins('beforeDatasetUpdate', args) === false) { |
| 753 | return; |
| 754 | } |
| 755 | |
| 756 | meta.controller._update(mode); |
| 757 | |
| 758 | args.cancelable = false; |
| 759 | this.notifyPlugins('afterDatasetUpdate', args); |
| 760 | } |
| 761 | |
| 762 | render() { |
| 763 | if (this.notifyPlugins('beforeRender', {cancelable: true}) === false) { |
no test coverage detected