Remove calls to DOM.addClass and DOM.removeClass (#13063)

This commit is contained in:
Charles Gagnon
2020-10-23 14:42:22 -07:00
committed by GitHub
parent c7ab69d46d
commit 2d182fcd03
24 changed files with 89 additions and 93 deletions

View File

@@ -173,7 +173,7 @@ export class TableView<T> implements IDisposable {
this.domNode.setAttribute('aria-rowcount', '0');
this.domNode.setAttribute('aria-readonly', 'true');
DOM.addClass(this.domNode, this.domId);
this.domNode.classList.add(this.domId);
this.domNode.tabIndex = 0;
DOM.toggleClass(this.domNode, 'mouse-support', typeof options.mouseSupport === 'boolean' ? options.mouseSupport : true);
@@ -568,7 +568,7 @@ export class TableView<T> implements IDisposable {
const cell = this.cache.alloc(column.id);
row.cells[index] = cell;
if (column.cellClass) {
DOM.addClass(cell.domNode!, column.cellClass);
cell.domNode!.classList.add(column.cellClass);
}
row.row.appendChild(cell.domNode!);
}