소스 검색

Removed: Some premature optimization in view.Position.

Szymon Cofalik 9 년 전
부모
커밋
e4654c5d25
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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 );
 	}
 
 	/**