8
0
Pārlūkot izejas kodu

Removed: Some premature optimization in view.Position.

Szymon Cofalik 9 gadi atpakaļ
vecāks
revīzija
e4654c5d25
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      packages/ckeditor5-engine/src/view/position.js

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

@@ -158,7 +158,7 @@ export default class Position {
 	 * @returns {Boolean} True if positions are same.
 	 */
 	isEqual( otherPosition ) {
-		return this == otherPosition || ( this.parent == otherPosition.parent && this.offset == otherPosition.offset );
+		return ( this.parent == otherPosition.parent && this.offset == otherPosition.offset );
 	}
 
 	/**