浏览代码

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 );
 	}
 
 	/**