Explorar o código

Removed: Some premature optimization in view.Position.

Szymon Cofalik %!s(int64=9) %!d(string=hai) anos
pai
achega
e4654c5d25
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 );
 	}
 
 	/**