8
0
Prechádzať zdrojové kódy

Removed: Some premature optimization in view.Position.

Szymon Cofalik 9 rokov pred
rodič
commit
e4654c5d25

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