8
0
Эх сурвалжийг харах

Replaced Collection#get() in favor of Collection#has().

Oskar Wróbel 7 жил өмнө
parent
commit
b0dc017929

+ 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.get( marker.name ) ) {
+			if ( !this.markers.has( marker ) ) {
 				this.markers.add( marker );
 			}
 		}