Explorar o código

Internal: Variable name adjusted.

Marek Lewandowski %!s(int64=5) %!d(string=hai) anos
pai
achega
90d81bb5ee
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      packages/ckeditor5-table/src/commands/removerowcommand.js

+ 2 - 2
packages/ckeditor5-table/src/commands/removerowcommand.js

@@ -37,9 +37,9 @@ export default class RemoveRowCommand extends Command {
 			const tableRowCount = this.editor.plugins.get( 'TableUtils' ).getRows( table );
 			const tableRowCount = this.editor.plugins.get( 'TableUtils' ).getRows( table );
 			const lastRowIndex = tableRowCount - 1;
 			const lastRowIndex = tableRowCount - 1;
 
 
-			const removedRowIndexes = getRowIndexes( selectedCells );
+			const selectedRowIndexes = getRowIndexes( selectedCells );
 
 
-			const areAllRowsSelected = removedRowIndexes.first === 0 && removedRowIndexes.last === lastRowIndex;
+			const areAllRowsSelected = selectedRowIndexes.first === 0 && selectedRowIndexes.last === lastRowIndex;
 
 
 			// Disallow selecting whole table -> delete whole table should be used instead.
 			// Disallow selecting whole table -> delete whole table should be used instead.
 			this.isEnabled = !areAllRowsSelected;
 			this.isEnabled = !areAllRowsSelected;