Parcourir la source

Minor style improvement.

Oskar Wróbel il y a 7 ans
Parent
commit
7f098f2306
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      packages/ckeditor5-engine/src/model/documentselection.js

+ 1 - 1
packages/ckeditor5-engine/src/model/documentselection.js

@@ -823,7 +823,7 @@ class LiveSelection extends Selection {
 		}
 
 		for ( const marker of markers ) {
-			if ( this.markers.getIndex( marker ) < 0 ) {
+			if ( !this.markers.get( marker.name ) ) {
 				this.markers.add( marker );
 			}
 		}