* Constructs a new side by side DiffView instance. * * @param {import("../diff").DiffModel} [diffModel] - The model for the diff view.
(diffModel)
| 10 | * @param {import("../diff").DiffModel} [diffModel] - The model for the diff view. |
| 11 | */ |
| 12 | constructor(diffModel) { |
| 13 | diffModel = diffModel || {}; |
| 14 | super(); |
| 15 | this.init(diffModel); |
| 16 | } |
| 17 | |
| 18 | init(diffModel) { |
| 19 | this.onChangeTheme = this.onChangeTheme.bind(this); |