Parcourir la source

Code style fix - keep order of declarations as in method call.

Maciej Gołaszewski il y a 5 ans
Parent
commit
101870f4ed
1 fichiers modifiés avec 4 ajouts et 4 suppressions
  1. 4 4
      packages/ckeditor5-table/src/tableclipboard.js

+ 4 - 4
packages/ckeditor5-table/src/tableclipboard.js

@@ -207,16 +207,16 @@ export default class TableClipboard extends Plugin {
 
 			pastedTable = cropTableToDimensions( pastedTable, cropDimensions, writer, tableUtils );
 
+			const pastedDimensions = {
+				width: pasteWidth,
+				height: pasteHeight
+			};
 			const selectionDimensions = {
 				firstColumnOfSelection,
 				firstRowOfSelection,
 				lastColumnOfSelection,
 				lastRowOfSelection
 			};
-			const pastedDimensions = {
-				width: pasteWidth,
-				height: pasteHeight
-			};
 
 			replaceSelectedCellsWithPasted( pastedTable, pastedDimensions, selectedTable, selectionDimensions, writer );
 		} );