* 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)
| 667 | * @private |
| 668 | */ |
| 669 | _updateDataset(index, mode) { |
| 670 | const meta = this.getDatasetMeta(index); |
| 671 | const args = {meta, index, mode, cancelable: true}; |
| 672 | |
| 673 | if (this.notifyPlugins('beforeDatasetUpdate', args) === false) { |
| 674 | return; |
| 675 | } |
| 676 | |
| 677 | meta.controller._update(mode); |
| 678 | |
| 679 | args.cancelable = false; |
| 680 | this.notifyPlugins('afterDatasetUpdate', args); |
| 681 | } |
| 682 | |
| 683 | render() { |
| 684 | if (this.notifyPlugins('beforeRender', {cancelable: true}) === false) { |
no test coverage detected