8
0
فهرست منبع

Use spread operator for concatenating paths in Position constructor.

Maciej Gołaszewski 5 سال پیش
والد
کامیت
93f73bcbbe
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      packages/ckeditor5-engine/src/model/position.js

+ 1 - 1
packages/ckeditor5-engine/src/model/position.js

@@ -82,7 +82,7 @@ export default class Position {
 		}
 
 		// Normalize the root and path (if element was passed).
-		path = root.getPath().concat( path );
+		path = [ ...root.getPath(), ...path ];
 		root = root.root;
 
 		/**